![]() |
OpenXcom
1.0
Open-source clone of the original X-Com
|
A Psi Attack state. More...
#include <PsiAttackBState.h>
Public Member Functions | |
PsiAttackBState (BattlescapeGame *parent, BattleAction action) | |
Creates a new PsiAttack state. More... | |
~PsiAttackBState () | |
Cleans up the PsiAttack. More... | |
void | init () |
Initializes the state. More... | |
void | think () |
Runs state functionality every cycle. More... | |
void | psiAttack () |
Attempts a panic or mind control action. | |
![]() | |
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... | |
A Psi Attack state.
OpenXcom::PsiAttackBState::PsiAttackBState | ( | BattlescapeGame * | parent, |
BattleAction | action | ||
) |
Creates a new PsiAttack state.
Sets up a PsiAttackBState.
OpenXcom::PsiAttackBState::~PsiAttackBState | ( | ) |
Cleans up the PsiAttack.
Deletes the PsiAttackBState.
|
virtual |
Initializes the state.
Initializes the sequence:
Reimplemented from OpenXcom::BattleState.
|
virtual |
Runs state functionality every cycle.
After the explosion animation is done doing its thing, make the actual psi attack, and restore the camera/cursor.
Reimplemented from OpenXcom::BattleState.