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

Class header file: BWAPI/UnitCommandType.h

Specifies the type of UnitCommand. Used when constructing UnitCommand objects, which are then passed to Unit::issueCommand which uses this type to determine which Unit member function to call.

List of all UnitCommandTypes.

Methods:

Non-member methods in UnitCommandTypes namespace:

getID

int getID();

Returns the unique ID for this unit command type.

getName

std::string getName();

Returns the name of the unit command type. For example UnitCommandTypes::Hold_Position.getName() will return an std::string object containing "Hold Position".

getUnitCommandType

UnitCommandType getUnitCommandType(std::string name);

Given the name of a unit command type, this function will return the UnitCommandType. For example: UnitCommandTypes::getUnitCommandType("Attack Unit") will return UnitCommandTypes::Attack_Unit.

allUnitCommandTypes

std::set<UnitCommandType>& allUnitCommandTypes();

Returns the set of all the UnitCommandTypes.


Sign in to add a comment
Powered by Google Project Hosting