BWAPI
|
#include <UpgradesPlanner.h>
Public Member Functions | |
~UpgradesPlanner () | |
bool | checkUpgrade (BaseAgent *agent) |
Static Public Member Functions | |
static UpgradesPlanner * | getInstance () |
UpgradesPlanner contains which updates/techs to be research and in which order.
The UpgradesPlanner is implemented as a singleton class. Each class that needs to access UpgradesPlanner can request an instance, and all classes shares the same UpgradesPlanner instance.
Author: Johan Hagelback (johan.hagelback@gmail.com)
Destructor.
bool UpgradesPlanner::checkUpgrade | ( | BaseAgent * | agent | ) |
Checks if there is an upgrade the specified agent need to upgrade/research.
UpgradesPlanner * UpgradesPlanner::getInstance | ( | ) | [static] |
Returns the instance to the UpgradesPlanner that is currently used.