|
ProtoBot
|
When any squad is created, it is assigned this state by default. This state does nothing. More...
#include <SquadStateTypes.h>
Public Member Functions | |
| void | Enter (Squad *squad) |
| Squad is added to IdleSquads vector in CombatManager. | |
| void | Update (Squad *squad) |
| Base state for all squads when first created. These squads will be later reassigned after actions are received from StrategyManager. Idle squads will not do anything until they are assigned a new state. | |
| void | Exit (Squad *squad) |
| Squad is removed from IdleSquads vector in CombatManager and resets all command positions to invalid. | |
Static Public Member Functions | |
| static SquadState & | getInstance () |
Private Member Functions | |
| IdleState (const IdleState &) | |
| IdleState & | operator= (const IdleState &) |
When any squad is created, it is assigned this state by default. This state does nothing.
Definition at line 124 of file SquadStateTypes.h.
|
inlineprivate |
Definition at line 145 of file SquadStateTypes.h.
|
virtual |
Squad is added to IdleSquads vector in CombatManager.
| squad |
Implements SquadState.
Definition at line 246 of file SquadStateTypes.cpp.
|
virtual |
Squad is removed from IdleSquads vector in CombatManager and resets all command positions to invalid.
| squad |
Implements SquadState.
Definition at line 255 of file SquadStateTypes.cpp.
|
static |
Definition at line 266 of file SquadStateTypes.cpp.
Definition at line 147 of file SquadStateTypes.h.
|
virtual |
Base state for all squads when first created.
These squads will be later reassigned after actions are received from StrategyManager.
Idle squads will not do anything until they are assigned a new state.
| squad |
Implements SquadState.
Definition at line 253 of file SquadStateTypes.cpp.