|
BWAPI
|
#include <CommandCenterAgent.h>


Public Member Functions | |
| CommandCenterAgent (BWAPI::Unit &u) | |
| virtual void | update () |
Definition at line 9 of file CommandCenterAgent.h.
| CommandCenterAgent::CommandCenterAgent | ( | BWAPI::Unit & | u | ) |
Definition at line 12 of file CommandCenterAgent.cpp.
: StructureAgent(u) {}
| void CommandCenterAgent::update | ( | ) | [virtual] |
Reimplemented from StructureAgent.
Definition at line 16 of file CommandCenterAgent.cpp.
References Agent::state, TrainState, and Agent::unit.
{
switch (state)
{
case TrainState:
if (!unit.isTraining() && !unit.isBeingConstructed() )
{
unit.train(UnitTypes::Terran_SCV);
}
break;
}
StructureAgent::update();
}
1.7.6.1