OpenXcom
1.0
Open-source clone of the original X-Com
|
State for falling units. More...
#include <UnitFallBState.h>
Public Member Functions | |
UnitFallBState (BattlescapeGame *parent) | |
Creates a new UnitWalkBState class. More... | |
~UnitFallBState () | |
Cleans up the UnitWalkBState. More... | |
void | init () |
Initializes the state. | |
void | think () |
Runs state functionality every cycle. Returns when finished. 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... | |
virtual void | cancel () |
Handles a cancel request. More... | |
BattleAction | getAction () const |
Gets a copy of the action. More... | |
State for falling units.
OpenXcom::UnitFallBState::UnitFallBState | ( | BattlescapeGame * | parent | ) |
Creates a new UnitWalkBState class.
Sets up an UnitFallBState.
parent | Pointer to the Battlescape. |
OpenXcom::UnitFallBState::~UnitFallBState | ( | ) |
Cleans up the UnitWalkBState.
Deletes the UnitWalkBState.
|
virtual |
Runs state functionality every cycle. Returns when finished.
Runs state functionality every cycle.
Progresses the fall, updates the battlescape, ...
Reimplemented from OpenXcom::BattleState.