BWAPI
|
#include <PlayerType.h>
Public Member Functions | |
PlayerType () | |
PlayerType (int id) | |
PlayerType (const PlayerType &other) | |
PlayerType & | operator= (const PlayerType &other) |
operator int () const | |
int | getID () const |
std::string | getName () const |
Private Attributes | |
int | id |
Definition at line 6 of file PlayerType.h.
BWAPI::PlayerType::PlayerType | ( | int | id | ) |
BWAPI::PlayerType::PlayerType | ( | const PlayerType & | other | ) |
int BWAPI::PlayerType::getID | ( | ) | const |
Returns the unique ID for this player type.
std::string BWAPI::PlayerType::getName | ( | ) | const |
Returns the name of the player type. For example PlayerTypes::Computer.getName() will return an std::string object containing "Computer".
BWAPI::PlayerType::operator int | ( | ) | const |
PlayerType& BWAPI::PlayerType::operator= | ( | const PlayerType & | other | ) |
int BWAPI::PlayerType::id [private] |
Definition at line 22 of file PlayerType.h.