|
Order
Class header file: BWAPI/Order.h To get detailed information about what a unit is doing, you can use the Unit::getOrder method, which will return an Order object. Note that a single command, like gather minerals, can consist of several orders ( MoveToMinerals, HarvestMinerals2, MiningMinerals, ReturnMinerals, etc) which will indicate what state the unit is in while executing the command. For information about how to issue commands to units, go to Unit. List of all Orders. Methods: Non-member methods in Orders namespace: getIDint getID(); Returns the unique ID for this order. getNamestd::string getName(); Returns the name of this order. getOrderOrder getOrder(std::string name); Given the name of an order, getOrder() will return the corresponding order object. allOrdersstd::set<Order>& allOrders(); Returns the set of all the Orders. | |