#include <UnitSet.h>
List of all members.
Public Member Functions |
| UnitSet () |
| default constructor
|
| UnitSet (groupObjective_t obj, BWAPI::Position pos) |
| init constructor (with the objective of the group)
|
| UnitSet (BWAPI::Position regroupPos) |
| init constructor
|
| ~UnitSet () |
| destructor
|
BWAPI::Position | curPos () const |
BWAPI::Position | pos () const |
| return the average position of the group
|
BWAPI::Position | objPos () const |
| return the average position of the objective
|
bool | empty () const |
| check if the group is empty
|
int | nbUnits () const |
| return the number of units that belong to the current group
|
void | moveTo (BWAPI::Position pos) |
| move to the desired position
|
void | attackTo (const BWAPI::Position pos) |
| attack to the desired position
|
void | patrolTo (BWAPI::Position pos) |
| patrol to the desired position
|
void | stop () |
| stop the group
|
bool | canFulFillObj (Objective *obj) const |
| check if the current group can fulfill the input objective
|
bool | requires (BWAPI::Unit *unit) const |
| check if the current group requires the input type of unit
|
void | addUnit (BWAPI::Unit *unit) |
| add a new unit to the group
|
Protected Member Functions |
void | updateAvgPos () |
| update the average position of the group
|
Protected Attributes |
std::list< BWAPI::Unit * > | lUnits_ |
groupObjective_t | objective_ |
groupStatus_t | status_ |
BWAPI::Position | curPos_ |
BWAPI::Position | objPos_ |
Constructor & Destructor Documentation
init constructor (with the objective of the group)
- Parameters:
-
obj | : the objective of the group |
pos | : the position associated to the objective |
init constructor
- Parameters:
-
pos | : the position to regroup units |
Member Function Documentation
add a new unit to the group
- Parameters:
-
attack to the desired position
- Parameters:
-
pos | : the position to go to |
check if the current group can fulfill the input objective
check if the current group can fulfill the inpût objective
- Parameters:
-
- Returns:
- true if the group can fulfill the objective
check if the group is empty
- Returns:
- true if the group is empty
move to the desired position
- Parameters:
-
pos | : the position to go to |
return the number of units that belong to the current group
- Returns:
- the number of units that belong to the current group
return the average position of the objective
- Returns:
- the average position of the objective
patrol to the desired position
- Parameters:
-
pos | : the position to go to |
return the average position of the group
- Returns:
- the average position of the group
check if the current group requires the input type of unit
- Parameters:
-
- Returns:
- true if the group requires the input unit
update the average position of the group
Member Data Documentation
average postion of the group on the map
list of units contained in the group
average postion of the objective of the group
The documentation for this class was generated from the following files:
- SnippyHolloW-BroodwarBotQ-f01ab56/src/Micro/UnitManager/UnitSet.h
- SnippyHolloW-BroodwarBotQ-f01ab56/src/Micro/UnitManager/UnitSet.cpp