MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / startFalling

Method startFalling

src/Savegame/BattleUnit.cpp:1047–1052  ·  view source on GitHub ↗

* Intialises the falling sequence. Occurs after death or stunned. */

Source from the content-addressed store, hash-verified

1045 * Intialises the falling sequence. Occurs after death or stunned.
1046 */
1047void BattleUnit::startFalling()
1048{
1049 _status = STATUS_COLLAPSING;
1050 _fallPhase = 0;
1051 _cacheInvalid = true;
1052}
1053
1054/**
1055 * Advances the phase of falling sequence.

Callers 2

UnitDieBStateMethod · 0.80
thinkMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected