BWAPI
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
BWAPI::Race Class Reference

#include <Race.h>

Inheritance diagram for BWAPI::Race:
Inheritance graph
[legend]
Collaboration diagram for BWAPI::Race:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Race ()
 Race (int id)
const std::string & getName () const
const char * c_str () const
UnitType getWorker () const
UnitType getCenter () const
UnitType getRefinery () const
UnitType getTransport () const
UnitType getSupplyProvider () const

Constructor & Destructor Documentation


Member Function Documentation

const char * BWAPI::Race::c_str ( ) const

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

const 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".

Here is the call graph for this function:

Here is the caller graph for this function:

Returns the refinery unit type for the given race. For example: Races::Zerg.getRefinery() will return a pointer to UnitTypes::Zerg_Extractor?.

Here is the call graph for this function:

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?.

Here is the call graph for this function:

Returns the transport unit type for the given race. For example: Races::Protoss.getTransport() will return a pointer to UnitTypes::Protoss_Shuttle.

Here is the call graph for this function:

Returns the worker unit type for the given race. For example Races::Protoss.getWorker() will return a pointer to UnitTypes::Protoss_Probe.

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines