|
PlayerType
Class header file: BWAPI/PlayerType.h List of all PlayerTypes. Methods: Non-member methods in PlayerTypes namespace: getIDint getID(); Returns the unique ID for this player type. getNamestd::string getName(); Returns the name of the player type. For example PlayerTypes::Computer.getName() will return an std::string object containing "Computer". getPlayerTypePlayerType getPlayerType(std::string name); Given the name of a player type, this function will return the PlayerType. For example: PlayerTypes::getPlayerType("Player") will return PlayerTypes::Player. allPlayerTypesstd::set<PlayerType>& allPlayerTypes(); Returns the set of all the PlayerTypes. | |
► Sign in to add a comment