|
BWAPI
|
#include <Race.h>
Public Member Functions | |
| Race () | |
| Race (int id) | |
| Race (const Race &other) | |
| Race & | operator= (const Race &other) |
| operator int () const | |
| int | getID () const |
| std::string | getName () const |
| UnitType | getWorker () const |
| UnitType | getCenter () const |
| UnitType | getRefinery () const |
| UnitType | getTransport () const |
| UnitType | getSupplyProvider () const |
Private Attributes | |
| int | id |
| BWAPI::Race::Race | ( | int | id | ) |
| BWAPI::Race::Race | ( | const Race & | other | ) |
| UnitType BWAPI::Race::getCenter | ( | ) | const |
Returns the center unit type for the given race. For example Races::Terran.getCenter() will return a pointer to UnitTypes::Terran_Command_Center. While there are three center types for Zerg (Hatchery, Lair, and Hive), Races::Zerg.getCenter() will only return a pointer to UnitTypes::Zerg_Hatchery, since it is the unit type needed to make a new center.
Referenced by BuildingPlacerClass::calculateReservations(), PossibleLocationCompare::operator()(), and BuildingPlacerClass::rememberBestExpandLocation().

| int BWAPI::Race::getID | ( | ) | const |
Returns a unique ID for this race.
| std::string BWAPI::Race::getName | ( | ) | const |
Returns the name of the race. For example Races::Terran.getName() will return a std::string object containing "Terran".
| UnitType BWAPI::Race::getRefinery | ( | ) | const |
Returns the refinery unit type for the given race. For example: Races::Zerg.getRefinery() will return a pointer to UnitTypes::Zerg_Extractor?.
Referenced by BuildingPlacerClass::calculateReservations(), and ExpansionManagerClass::updateRefineries().

| UnitType BWAPI::Race::getSupplyProvider | ( | ) | const |
Returns the main supply provider unit type for the given race. For example: Races::Terran.getSupplyProvider() will return a pointer to UnitTypes::Terran_Supply_Depot?.
Referenced by SupplyManagerClass::update().

| UnitType BWAPI::Race::getTransport | ( | ) | const |
Returns the transport unit type for the given race. For example: Races::Protoss.getTransport() will return a pointer to UnitTypes::Protoss_Shuttle.
| UnitType BWAPI::Race::getWorker | ( | ) | const |
Returns the worker unit type for the given race. For example Races::Protoss.getWorker() will return a pointer to UnitTypes::Protoss_Probe.
| BWAPI::Race::operator int | ( | ) | const |
int BWAPI::Race::id [private] |
1.7.6.1