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;
~UnitDieBState()
Cleans up the UnitDieBState.
Definition: UnitDieBState.cpp:100
void convertUnitToCorpse()
Converts a unit to a corpse.
Definition: UnitDieBState.cpp:220
void playDeathSound()
Plays the death sound.
Definition: UnitDieBState.cpp:295
State for dying units.
Definition: UnitDieBState.h:35
This class sets the battlescape in a certain sub-state.
Definition: BattleState.h:34
void think()
Runs state functionality every cycle.
Definition: UnitDieBState.cpp:113
void init()
Initializes the state.
Definition: UnitDieBState.cpp:105
Battlescape game - the core game engine of the battlescape game.
Definition: BattlescapeGame.h:70
UnitDieBState(BattlescapeGame *parent, BattleUnit *unit, ItemDamageType damageType, bool noSound)
Creates a new UnitDieBState class.
Definition: UnitDieBState.cpp:53
std::string getResult() const
Gets the result of the state.
void cancel()
Handles a cancels request.
Definition: UnitDieBState.cpp:213
Represents a moving unit in the battlescape, player controlled or AI controlled it holds info about i...
Definition: BattleUnit.h:58