19 #ifndef OPENXCOM_UNITPANICBSTATE_H
20 #define OPENXCOM_UNITPANICBSTATE_H
22 #include "BattleState.h"
State for panicking units.
Definition: UnitPanicBState.h:33
std::string getResult() const
Gets the result of the state.
~UnitPanicBState()
Cleans up the UnitPanicBState.
Definition: UnitPanicBState.cpp:39
void init()
Initializes the state.
Definition: UnitPanicBState.cpp:43
This class sets the battlescape in a certain sub-state.
Definition: BattleState.h:34
UnitPanicBState(BattlescapeGame *parent, BattleUnit *unit)
Creates a new UnitPanicBState class.
Definition: UnitPanicBState.cpp:31
void cancel()
Handles a cancels request.
Definition: UnitPanicBState.cpp:69
void think()
Runs state functionality every cycle.
Definition: UnitPanicBState.cpp:51
Battlescape game - the core game engine of the battlescape game.
Definition: BattlescapeGame.h:70
Represents a moving unit in the battlescape, player controlled or AI controlled it holds info about i...
Definition: BattleUnit.h:58