BWAPI
Public Member Functions | Protected Attributes | Friends
UnitManager Class Reference

#include <UnitManager.h>

Inheritance diagram for UnitManager:
Inheritance graph
[legend]
Collaboration diagram for UnitManager:
Collaboration graph
[legend]

List of all members.

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_
Regionsregions

Friends

class CSingleton< UnitManager >

Member Function Documentation

assign groups of units to the current objectives to fulfill

check for new objectives to create

std::string UnitManager::getName ( ) const

return the name of the class

Returns:
the name of the class
void UnitManager::onUnitCreate ( BWAPI::Unit *  unit)

add a new unit

Parameters:
unit: the new created unit
void UnitManager::onUnitDestroy ( BWAPI::Unit *  unit)

add a new unit

Parameters:
unit: the new created unit

update the unit manager at each time step


Friends And Related Function Documentation

friend class CSingleton< UnitManager > [friend]

Member Data Documentation

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


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