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::UnitWalkBState Class Reference

State for walking units. More...

#include <UnitWalkBState.h>

Inheritance diagram for OpenXcom::UnitWalkBState:
OpenXcom::BattleState

Public Member Functions

 UnitWalkBState (BattlescapeGame *parent, BattleAction _action)
 Creates a new UnitWalkBState class. More...
 
 ~UnitWalkBState ()
 Cleans up the UnitWalkBState. More...
 
void setTarget (Position target)
 Sets the target to walk to.
 
void init ()
 Initializes the state.
 
void cancel ()
 Handles a cancels request. More...
 
void think ()
 Runs state functionality every cycle.
 
- 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 walking units.

Constructor & Destructor Documentation

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

Creates a new UnitWalkBState class.

Sets up an UnitWalkBState.

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

Cleans up the UnitWalkBState.

Deletes the UnitWalkBState.

Member Function Documentation

void OpenXcom::UnitWalkBState::cancel ( )
virtual

Handles a cancels request.

Aborts unit walking.

Reimplemented from OpenXcom::BattleState.


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