BWAPI 4.2.0 An API for interacting with Starcraft: Broodwar (1.16.1) |
Public Member Functions | |
constexpr | Race (int id=Races::Enum::None) |
UnitType | getCenter () const |
UnitType | getRefinery () const |
UnitType | getResourceDepot () const |
UnitType | getSupplyProvider () const |
UnitType | getTransport () const |
UnitType | getWorker () const |
The Race object is used to get information about a particular race.
For example, the default worker and supply provider UnitType.
As you should already know, Starcraft has three races: Terran , Protoss , and Zerg .
Races::Enum::None
)Expected type constructor.
If the type is an invalid type, then it becomes Types::Unknown. A type is invalid if its value is less than 0 or greater than Types::Unknown.
id | The id that corresponds to this type. It is typically an integer value that corresponds to an internal Broodwar type. If the given id is invalid, then it becomes Types::Unknown. |
References BWAPI::Races::allRaces().
Retrieves the default resource depot UnitType that workers of this race can construct and return resources to.
Deprecated.
Use getResourceDepot instead.
Retrieves the default structure UnitType for this Race that is used to harvest gas from Vespene Geysers.