20 #include "BattleState.h" 21 #include "../Mod/RuleItem.h" 26 class BattlescapeGame;
37 ItemDamageType _damageType;
38 bool _noSound, _noCorpse;
~UnitDieBState()
Cleans up the UnitDieBState.
Definition: UnitDieBState.cpp:118
void convertUnitToCorpse()
Converts a unit to a corpse.
Definition: UnitDieBState.cpp:249
void playDeathSound()
Plays the death sound.
Definition: UnitDieBState.cpp:332
State for dying units.
Definition: UnitDieBState.h:33
UnitDieBState(BattlescapeGame *parent, BattleUnit *unit, ItemDamageType damageType, bool noSound, bool noCorpse)
Creates a new UnitDieBState class.
Definition: UnitDieBState.cpp:50
This class sets the battlescape in a certain sub-state.
Definition: BattleState.h:29
void think()
Runs state functionality every cycle.
Definition: UnitDieBState.cpp:131
void init()
Initializes the state.
Definition: UnitDieBState.cpp:123
Battlescape game - the core game engine of the battlescape game.
Definition: BattlescapeGame.h:68
void cancel()
Handles a cancels request.
Definition: UnitDieBState.cpp:242
Represents a moving unit in the battlescape, player controlled or AI controlled it holds info about i...
Definition: BattleUnit.h:59
Definition: BaseInfoState.cpp:40