BWAPI
|
#include <UnitManager.h>
Public Member Functions | |
std::string | getName () const |
return the name of the class | |
void | update () |
update the unit manager at each time step | |
void | checkNewObjectives () |
check for new objectives to create | |
void | assignGroupToObj () |
assign groups of units to the current objectives to fulfill | |
void | onUnitCreate (BWAPI::Unit *unit) |
add a new unit | |
void | onUnitDestroy (BWAPI::Unit *unit) |
add a new unit | |
Protected Attributes | |
std::list< BWAPI::Unit * > | lUnits_ |
std::list< UnitGroup * > | lGroup_ |
std::list< Objective * > | lObjective_ |
Regions * | regions |
Friends | |
class | CSingleton< UnitManager > |
void UnitManager::assignGroupToObj | ( | ) |
assign groups of units to the current objectives to fulfill
void UnitManager::checkNewObjectives | ( | ) |
check for new objectives to create
std::string UnitManager::getName | ( | ) | const |
return the name of the class
void UnitManager::onUnitCreate | ( | BWAPI::Unit * | unit | ) |
add a new unit
unit | : the new created unit |
void UnitManager::onUnitDestroy | ( | BWAPI::Unit * | unit | ) |
add a new unit
unit | : the new created unit |
void UnitManager::update | ( | ) |
update the unit manager at each time step
friend class CSingleton< UnitManager > [friend] |
std::list<UnitGroup*> UnitManager::lGroup_ [protected] |
list of the groups of units managed
std::list<Objective*> UnitManager::lObjective_ [protected] |
list of the objective to fulfill
std::list<BWAPI::Unit*> UnitManager::lUnits_ [protected] |
list of all available units
Regions* UnitManager::regions [protected] |