 |
OpenXcom
1.0
Open-source clone of the original X-Com
|
19 #ifndef OPENXCOM_UNITDIEBSTATE_H
20 #define OPENXCOM_UNITDIEBSTATE_H
22 #include "BattleState.h"
23 #include "../Ruleset/RuleItem.h"
28 class BattlescapeGame;
39 ItemDamageType _damageType;
COPYING:
Definition: BaseInfoState.cpp:41
State for dying units.
Definition: UnitDieBState.h:36
void convertUnitToCorpse()
Converts a unit to a corpse.
Definition: UnitDieBState.cpp:220
This class sets the battlescape in a certain sub-state.
Definition: BattleState.h:35
Battlescape game - the core game engine of the battlescape game.
Definition: BattlescapeGame.h:71
void cancel()
Handles a cancels request.
Definition: UnitDieBState.cpp:213
~UnitDieBState()
Cleans up the UnitDieBState.
Definition: UnitDieBState.cpp:100
void think()
Runs state functionality every cycle.
Definition: UnitDieBState.cpp:113
Represents a moving unit in the battlescape, player controlled or AI controlled it holds info about i...
Definition: BattleUnit.h:59
void init()
Initializes the state.
Definition: UnitDieBState.cpp:105
void playDeathSound()
Plays the death sound.
Definition: UnitDieBState.cpp:295
std::string getResult() const
Gets the result of the state.
UnitDieBState(BattlescapeGame *parent, BattleUnit *unit, ItemDamageType damageType, bool noSound)
Creates a new UnitDieBState class.
Definition: UnitDieBState.cpp:53