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

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:

getID

int getID();

Returns the unique ID for this order.

getName

std::string getName();

Returns the name of this order.

getOrder

Order getOrder(std::string name);

Given the name of an order, getOrder() will return the corresponding order object.

allOrders

std::set<Order>& allOrders();

Returns the set of all the Orders.


Sign in to add a comment
Powered by Google Project Hosting