OpenXcom  1.0
Open-source clone of the original X-Com
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
OpenXcom::UnitTurnBState Class Reference

State for turning units. More...

#include <UnitTurnBState.h>

Inheritance diagram for OpenXcom::UnitTurnBState:
OpenXcom::BattleState

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...
 

Detailed Description

State for turning units.

Constructor & Destructor Documentation

OpenXcom::UnitTurnBState::UnitTurnBState ( BattlescapeGame parent,
BattleAction  action 
)

Creates a new UnitTurnBState class.

Sets up an UnitTurnBState.

Parameters
parentPointer to the Battlescape.
actionPointer to an action.
OpenXcom::UnitTurnBState::~UnitTurnBState ( )

Cleans up the UnitTurnBState.

Deletes the UnitTurnBState.

Member Function Documentation

void OpenXcom::UnitTurnBState::cancel ( )
virtual

Handles a cancels request.

Unit turning cannot be cancelled.

Reimplemented from OpenXcom::BattleState.


The documentation for this class was generated from the following files: