|
UnitCommandType
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: getIDint getID(); Returns the unique ID for this unit command type. getNamestd::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". getUnitCommandTypeUnitCommandType 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. allUnitCommandTypesstd::set<UnitCommandType>& allUnitCommandTypes(); Returns the set of all the UnitCommandTypes. | |