#include <Order.h>
Public Member Functions | |
Order () | |
Order (int id) | |
Order (const Order &other) | |
Order & | operator= (const Order &other) |
operator int () const | |
int | getID () const |
std::string | getName () const |
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.
BWAPI::Order::Order | ( | int | id | ) |
BWAPI::Order::Order | ( | const Order & | other | ) |
int BWAPI::Order::getID | ( | ) | const |
Returns the unique ID for this order.
std::string BWAPI::Order::getName | ( | ) | const |
Returns the name of this order.
BWAPI::Order::operator int | ( | ) | const |