![]() | BWAPI 4.2.0 An API for interacting with Starcraft: Broodwar (1.16.1) |
Classes | |
| class | AIModule |
| class | BestFilter |
| class | BulletInterface |
| class | Bulletset |
| class | BulletType |
| class | Color |
| class | CompareFilter |
| class | DamageType |
| class | Error |
| class | Event |
| class | ExplosionType |
| class | ForceInterface |
| class | Forceset |
| class | Game |
| class | GameType |
| class | GameWrapper |
| class | Interface |
| class | InterfaceEvent |
| class | Order |
| class | PlayerInterface |
| class | Playerset |
| class | PlayerType |
| class | Point |
| class | Point< bool, Scale > |
| class | Point< char, Scale > |
| class | Point< T, 0 > |
| class | Point< unsigned char, Scale > |
| class | Race |
| class | RegionInterface |
| class | Regionset |
| class | SetContainer |
| class | TechType |
| class | TournamentModule |
| class | Type |
| class | UnaryFilter |
| class | UnitCommand |
| class | UnitCommandType |
| class | UnitInterface |
| class | Unitset |
| class | UnitSizeType |
| class | UnitType |
| class | UpgradeType |
| class | WeaponType |
Typedefs | |
| typedef BestFilter< Unit > | BestUnitFilter |
| typedef BulletInterface * | Bullet |
| typedef ForceInterface * | Force |
| typedef PlayerInterface * | Player |
| typedef BWAPI::Point< int, POSITION_SCALE > | Position |
| typedef CompareFilter< Unit,int, int(*)(Unit)> | PtrIntCompareUnitFilter |
| typedef UnaryFilter< Unit,bool(*)(Unit)> | PtrUnitFilter |
| typedef RegionInterface * | Region |
| template<class T , class HashT > | |
| using | SetContainerUnderlyingT = std::unordered_set< T, HashT > |
| typedef BWAPI::Point< int, TILEPOSITION_SCALE > | TilePosition |
| typedef UnitInterface * | Unit |
| typedef UnaryFilter< Unit > | UnitFilter |
| typedef BWAPI::Point< int, WALKPOSITION_SCALE > | WalkPosition |
Functions | |
| int | BWAPI_getRevision () |
| bool | BWAPI_isDebug () |
| template<typename _PARAM > | |
| BestFilter< _PARAM > | Highest (const CompareFilter< _PARAM, int > &filter) |
| template<typename _PARAM > | |
| BestFilter< _PARAM > | Lowest (const CompareFilter< _PARAM, int > &filter) |
Variables | |
| GameWrapper | Broodwar |
| Game * | BroodwarPtr |
| std::ostream & | bwerr |
| std::ostream & | bwout |
| const int | CLIENT_VERSION = 10002 |
| static const int | ENERGY_REGEN_RATE = 8 |
| std::ostream & | err |
| static const int | LIFE_REGEN_RATE = 4 |
| std::ostream & | out |
| const int | POSITION_SCALE = 1 |
| static const int | SHIELD_REGEN_RATE = 7 |
| const int | TILEPOSITION_SCALE = 32 |
| const int | WALKPOSITION_SCALE = 8 |
Indicates a position that is 1x1 pixel in size.
This is the most precise position type.
Indicates a position that is 8x8 pixels in size.
Indicates a position that is 32x32 pixels in size.
Typically used for building placement.
An enumeration of mouse button inputs.
| Enumerator | |
|---|---|
| M_LEFT | |
| M_RIGHT | |
| M_MIDDLE | |
| M_MAX | |
An enumeration of keyboard input values.
Retrieves the revision of the BWAPILIB module currently being used.
Checks if the BWAPILIB module was compiled in DEBUG mode.
| true | if this is a DEBUG build |
| false | if this is a RELEASE build |
The primary Game interface, used to access any Game information or perform Game actions.
Referenced by BWAPI::GameWrapper::operator<<().
The scale of a WalkPosition.
Each walk position corresponds to an 8x8 pixel area.
The scale of a TilePosition.
Each tile position corresponds to a 32x32 pixel area.
Output stream that writes text to the screen as a notification.
Colored Text::Yellow by default, but preserves new Text::Enum colors written to it between lines. Wraps text when needed, not on word boundaries.
An output stream that writes to both std::cout and BWAPI::bwout.
An output stream that writes to both std::cerr and BWAPI::bwerr.
The amount of shield points that a unit recovers over 256 frames.
That is, 7/256 shields are regenerated per frame.
The amount of energy that a unit with special abilities recovers over 256 frames.
That is, 8/256 energy is generated per frame.
The amount of life that a zerg unit recovers over 256 frames.
That is, 4/256 life is regenerated per frame.
The client version that this header file was compiled with.
Used to determine a client's compatibility with the BWAPI server process.
1.8.11