OpenXcom
1.0
Open-source clone of the original X-Com
|
State for turning units. More...
#include <UnitTurnBState.h>
Public Member Functions | |
UnitTurnBState (BattlescapeGame *parent, BattleAction action) | |
Creates a new UnitTurnBState class. More... | |
~UnitTurnBState () | |
Cleans up the UnitTurnBState. More... | |
void | init () |
Initializes the state. | |
void | cancel () |
Handles a cancels request. More... | |
void | think () |
Runs state functionality every cycle. | |
std::string | getResult () const |
Gets the result of the state. | |
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 turning units.
OpenXcom::UnitTurnBState::UnitTurnBState | ( | BattlescapeGame * | parent, |
BattleAction | action | ||
) |
Creates a new UnitTurnBState class.
Sets up an UnitTurnBState.
parent | Pointer to the Battlescape. |
action | Pointer to an action. |
OpenXcom::UnitTurnBState::~UnitTurnBState | ( | ) |
Cleans up the UnitTurnBState.
Deletes the UnitTurnBState.
|
virtual |
Handles a cancels request.
Unit turning cannot be cancelled.
Reimplemented from OpenXcom::BattleState.