|
Race
Class header file: BWAPI/Race.h List of all Races. Methods: Non-member methods in Races namespace: getIDint getID() const; Returns a unique ID for this race. getNamestd::string getName() const; Returns the name of the race. For example Races::Terran.getName() will return a std::string object containing "Terran". getWorkerUnitType getWorker() const; Returns the worker unit type for the given race. For example Races::Protoss.getWorker() will return UnitTypes::Protoss_Probe. getCenterUnitType getCenter() const; Returns the center unit type for the given race. For example Races::Terran.getCenter() will return UnitTypes::Terran_Command_Center. While there are three center types for Zerg (Hatchery, Lair, and Hive), Races::Zerg.getCenter() will only return UnitTypes::Zerg_Hatchery, since it is the unit type needed to make a new center. getRefineryUnitType getRefinery() const; Returns the refinery unit type for the given race. For example: Races::Zerg.getRefinery() will return UnitTypes::Zerg_Extractor. getTransportUnitType getTransport() const; Returns the transport unit type for the given race. For example: Races::Protoss.getTransport() will return UnitTypes::Protoss_Shuttle. getSupplyProviderUnitType getSupplyProvider() const; Returns the main supply provider unit type for the given race. For example: Races::Terran.getSupplyProvider() will return UnitTypes::Terran_Supply_Depot. getRaceRace getRace(std::string name); Given the name of a race, this function will return the race type. For example: Races::getRace("Zerg") will return Races::Zerg. allRacesstd::set<Race>& allRaces(); Returns the set of all the races, which are listed below. Races
| |