BWAPI
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions | Public Attributes
BWAPI::UnitCommand Class Reference

#include <UnitCommand.h>

Collaboration diagram for BWAPI::UnitCommand:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 UnitCommand ()
 UnitCommand (Unit *_unit, UnitCommandType _type, Unit *_target, int _x, int _y, int _extra)
UnitCommandType getType () const
UnitgetUnit () const
UnitgetTarget () const
Position getTargetPosition () const
TilePosition getTargetTilePosition () const
UnitType getUnitType () const
TechType getTechType () const
UpgradeType getUpgradeType () const
int getSlot () const
bool isQueued () const
bool operator== (const UnitCommand &other) const
bool operator!= (const UnitCommand &other) const
bool operator< (const UnitCommand &other) const
bool operator> (const UnitCommand &other) const

Static Public Member Functions

static UnitCommand attack (Unit *unit, Position target, bool shiftQueueCommand=false)
static UnitCommand attack (Unit *unit, Unit *target, bool shiftQueueCommand=false)
static UnitCommand build (Unit *unit, TilePosition target, UnitType type)
static UnitCommand buildAddon (Unit *unit, UnitType type)
static UnitCommand train (Unit *unit, UnitType type)
static UnitCommand morph (Unit *unit, UnitType type)
static UnitCommand research (Unit *unit, TechType tech)
static UnitCommand upgrade (Unit *unit, UpgradeType upgrade)
static UnitCommand setRallyPoint (Unit *unit, Position target)
static UnitCommand setRallyPoint (Unit *unit, Unit *target)
static UnitCommand move (Unit *unit, Position target, bool shiftQueueCommand=false)
static UnitCommand patrol (Unit *unit, Position target, bool shiftQueueCommand=false)
static UnitCommand holdPosition (Unit *unit, bool shiftQueueCommand=false)
static UnitCommand stop (Unit *unit, bool shiftQueueCommand=false)
static UnitCommand follow (Unit *unit, Unit *target, bool shiftQueueCommand=false)
static UnitCommand gather (Unit *unit, Unit *target, bool shiftQueueCommand=false)
static UnitCommand returnCargo (Unit *unit, bool shiftQueueCommand=false)
static UnitCommand repair (Unit *unit, Unit *target, bool shiftQueueCommand=false)
static UnitCommand burrow (Unit *unit)
static UnitCommand unburrow (Unit *unit)
static UnitCommand cloak (Unit *unit)
static UnitCommand decloak (Unit *unit)
static UnitCommand siege (Unit *unit)
static UnitCommand unsiege (Unit *unit)
static UnitCommand lift (Unit *unit)
static UnitCommand land (Unit *unit, TilePosition target)
static UnitCommand load (Unit *unit, Unit *target, bool shiftQueueCommand=false)
static UnitCommand unload (Unit *unit, Unit *target)
static UnitCommand unloadAll (Unit *unit, bool shiftQueueCommand=false)
static UnitCommand unloadAll (Unit *unit, Position target, bool shiftQueueCommand=false)
static UnitCommand rightClick (Unit *unit, Position target, bool shiftQueueCommand=false)
static UnitCommand rightClick (Unit *unit, Unit *target, bool shiftQueueCommand=false)
static UnitCommand haltConstruction (Unit *unit)
static UnitCommand cancelConstruction (Unit *unit)
static UnitCommand cancelAddon (Unit *unit)
static UnitCommand cancelTrain (Unit *unit, int slot=-2)
static UnitCommand cancelMorph (Unit *unit)
static UnitCommand cancelResearch (Unit *unit)
static UnitCommand cancelUpgrade (Unit *unit)
static UnitCommand useTech (Unit *unit, TechType tech)
static UnitCommand useTech (Unit *unit, TechType tech, Position target)
static UnitCommand useTech (Unit *unit, TechType tech, Unit *target)
static UnitCommand placeCOP (Unit *unit, TilePosition target)

Public Attributes

Unitunit
UnitCommandType type
Unittarget
int x
int y
int extra

Constructor & Destructor Documentation

Here is the call graph for this function:

BWAPI::UnitCommand::UnitCommand ( Unit _unit,
UnitCommandType  _type,
Unit _target,
int  _x,
int  _y,
int  _extra 
)

Member Function Documentation

UnitCommand BWAPI::UnitCommand::attack ( Unit unit,
Position  target,
bool  shiftQueueCommand = false 
) [static]

Here is the call graph for this function:

Here is the caller graph for this function:

UnitCommand BWAPI::UnitCommand::attack ( Unit unit,
Unit target,
bool  shiftQueueCommand = false 
) [static]
UnitCommand BWAPI::UnitCommand::build ( Unit unit,
TilePosition  target,
UnitType  type 
) [static]

Here is the call graph for this function:

Here is the caller graph for this function:

UnitCommand BWAPI::UnitCommand::buildAddon ( Unit unit,
UnitType  type 
) [static]

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

UnitCommand BWAPI::UnitCommand::cancelTrain ( Unit unit,
int  slot = -2 
) [static]

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

UnitCommand BWAPI::UnitCommand::follow ( Unit unit,
Unit target,
bool  shiftQueueCommand = false 
) [static]

Here is the caller graph for this function:

UnitCommand BWAPI::UnitCommand::gather ( Unit unit,
Unit target,
bool  shiftQueueCommand = false 
) [static]

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

UnitCommand BWAPI::UnitCommand::holdPosition ( Unit unit,
bool  shiftQueueCommand = false 
) [static]

Here is the caller graph for this function:

Here is the caller graph for this function:

UnitCommand BWAPI::UnitCommand::land ( Unit unit,
TilePosition  target 
) [static]

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

UnitCommand BWAPI::UnitCommand::load ( Unit unit,
Unit target,
bool  shiftQueueCommand = false 
) [static]

Here is the caller graph for this function:

UnitCommand BWAPI::UnitCommand::morph ( Unit unit,
UnitType  type 
) [static]

Here is the caller graph for this function:

UnitCommand BWAPI::UnitCommand::move ( Unit unit,
Position  target,
bool  shiftQueueCommand = false 
) [static]

Here is the call graph for this function:

Here is the caller graph for this function:

bool BWAPI::UnitCommand::operator!= ( const UnitCommand other) const
bool BWAPI::UnitCommand::operator< ( const UnitCommand other) const
bool BWAPI::UnitCommand::operator== ( const UnitCommand other) const
bool BWAPI::UnitCommand::operator> ( const UnitCommand other) const
UnitCommand BWAPI::UnitCommand::patrol ( Unit unit,
Position  target,
bool  shiftQueueCommand = false 
) [static]

Here is the call graph for this function:

Here is the caller graph for this function:

UnitCommand BWAPI::UnitCommand::placeCOP ( Unit unit,
TilePosition  target 
) [static]

Here is the call graph for this function:

Here is the caller graph for this function:

UnitCommand BWAPI::UnitCommand::repair ( Unit unit,
Unit target,
bool  shiftQueueCommand = false 
) [static]

Here is the caller graph for this function:

UnitCommand BWAPI::UnitCommand::research ( Unit unit,
TechType  tech 
) [static]

Here is the caller graph for this function:

UnitCommand BWAPI::UnitCommand::returnCargo ( Unit unit,
bool  shiftQueueCommand = false 
) [static]

Here is the caller graph for this function:

UnitCommand BWAPI::UnitCommand::rightClick ( Unit unit,
Position  target,
bool  shiftQueueCommand = false 
) [static]

Here is the call graph for this function:

Here is the caller graph for this function:

UnitCommand BWAPI::UnitCommand::rightClick ( Unit unit,
Unit target,
bool  shiftQueueCommand = false 
) [static]
UnitCommand BWAPI::UnitCommand::setRallyPoint ( Unit unit,
Position  target 
) [static]

Here is the call graph for this function:

Here is the caller graph for this function:

UnitCommand BWAPI::UnitCommand::setRallyPoint ( Unit unit,
Unit target 
) [static]

Here is the caller graph for this function:

UnitCommand BWAPI::UnitCommand::stop ( Unit unit,
bool  shiftQueueCommand = false 
) [static]

Here is the caller graph for this function:

UnitCommand BWAPI::UnitCommand::train ( Unit unit,
UnitType  type 
) [static]

Here is the caller graph for this function:

Here is the caller graph for this function:

UnitCommand BWAPI::UnitCommand::unload ( Unit unit,
Unit target 
) [static]

Here is the caller graph for this function:

UnitCommand BWAPI::UnitCommand::unloadAll ( Unit unit,
bool  shiftQueueCommand = false 
) [static]

Here is the caller graph for this function:

UnitCommand BWAPI::UnitCommand::unloadAll ( Unit unit,
Position  target,
bool  shiftQueueCommand = false 
) [static]

Here is the call graph for this function:

Here is the caller graph for this function:

UnitCommand BWAPI::UnitCommand::upgrade ( Unit unit,
UpgradeType  upgrade 
) [static]

Here is the caller graph for this function:

UnitCommand BWAPI::UnitCommand::useTech ( Unit unit,
TechType  tech 
) [static]

Here is the call graph for this function:

Here is the caller graph for this function:

UnitCommand BWAPI::UnitCommand::useTech ( Unit unit,
TechType  tech,
Position  target 
) [static]

Here is the call graph for this function:

UnitCommand BWAPI::UnitCommand::useTech ( Unit unit,
TechType  tech,
Unit target 
) [static]

Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines