BWAPI
|
#include <GoalManager.h>
Public Member Functions | |
void | addGoal (pGoal g) |
void | addGoals (const std::list< pGoal > &l) |
void | onUnitCreate (BWAPI::Unit *u) |
Add all units not building. | |
void | onUnitDestroy (BWAPI::Unit *u) |
Remove from _completedUnits or from _inTrainingUnits. | |
void | onUnitRenegade (BWAPI::Unit *u) |
const std::map< BWAPI::Unit *, pBayesianUnit > & | getCompletedUnits () const |
pBayesianUnit | getCompletedUnit (BWAPI::Unit *u) |
virtual void | update () |
Public Attributes | |
int | attackGoals |
Friends | |
class | CSingleton< GoalManager > |
void GoalManager::addGoal | ( | pGoal | g | ) |
void GoalManager::addGoals | ( | const std::list< pGoal > & | l | ) |
pBayesianUnit GoalManager::getCompletedUnit | ( | BWAPI::Unit * | u | ) |
const map< Unit *, pBayesianUnit > & GoalManager::getCompletedUnits | ( | ) | const |
void GoalManager::onUnitCreate | ( | BWAPI::Unit * | u | ) |
Add all units not building.
void GoalManager::onUnitDestroy | ( | BWAPI::Unit * | u | ) |
Remove from _completedUnits or from _inTrainingUnits.
void GoalManager::onUnitRenegade | ( | BWAPI::Unit * | u | ) |
void GoalManager::update | ( | ) | [virtual] |
Check if units in training are completed and create BayesianUnits if so
Do a regroup goal garbage collect units if nothing else to do, lowest bid
Do a first poke with at least 2 zealots against Z and at least 2 goons against others Hackety hack! TODO remove
Update all goals
Removed finished goals
friend class CSingleton< GoalManager > [friend] |