![]() |
OpenXcom
1.0
Open-source clone of the original X-Com
|
State for panicking units. More...
#include <UnitPanicBState.h>
Public Member Functions | |
| UnitPanicBState (BattlescapeGame *parent, BattleUnit *unit) | |
| Creates a new UnitPanicBState class. More... | |
| ~UnitPanicBState () | |
| Cleans up the UnitPanicBState. More... | |
| void | init () |
| Initializes the state. | |
| void | cancel () |
| Handles a cancels request. More... | |
| void | think () |
| Runs state functionality every cycle. More... | |
Public Member Functions inherited from OpenXcom::BattleState | |
| BattleState (BattlescapeGame *parent, BattleAction action) | |
| Creates a new BattleState linked to the game. More... | |
| BattleState (BattlescapeGame *parent) | |
| Creates a new BattleState linked to the game. More... | |
| virtual | ~BattleState () |
| Cleans up the BattleState. More... | |
| BattleAction | getAction () const |
| Gets a copy of the action. More... | |
State for panicking units.
| OpenXcom::UnitPanicBState::UnitPanicBState | ( | BattlescapeGame * | parent, |
| BattleUnit * | unit | ||
| ) |
Creates a new UnitPanicBState class.
Sets up an UnitPanicBState.
| parent | Pointer to the Battlescape. |
| unit | Panicking unit. |
| OpenXcom::UnitPanicBState::~UnitPanicBState | ( | ) |
Cleans up the UnitPanicBState.
Deletes the UnitPanicBState.
|
virtual |
|
virtual |
Runs state functionality every cycle.
Ends the panicking when done.
Reimplemented from OpenXcom::BattleState.
1.8.14