My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
PlayerType  
Updated Apr 14, 2011 by AHein...@gmail.com

Class header file: BWAPI/PlayerType.h

List of all PlayerTypes.

Methods:

Non-member methods in PlayerTypes namespace:

getID

int getID();

Returns the unique ID for this player type.

getName

std::string getName();

Returns the name of the player type. For example PlayerTypes::Computer.getName() will return an std::string object containing "Computer".

getPlayerType

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

allPlayerTypes

std::set<PlayerType>& allPlayerTypes();

Returns the set of all the PlayerTypes.


Sign in to add a comment
Powered by Google Project Hosting