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

Method init

src/Battlescape/UnitFallBState.cpp:60–68  ·  view source on GitHub ↗

* Initializes the state. */

Source from the content-addressed store, hash-verified

58 * Initializes the state.
59 */
60void UnitFallBState::init()
61{
62 _terrain = _parent->getTileEngine();
63 if (_parent->getSave()->getSide() == FACTION_PLAYER)
64 _parent->setStateInterval(Options::battleXcomSpeed);
65 else
66 _parent->setStateInterval(Options::battleAlienSpeed);
67
68}
69
70/**
71 * Runs state functionality every cycle.

Callers

nothing calls this directly

Calls 4

getSideMethod · 0.80
getSaveMethod · 0.80
getTileEngineMethod · 0.45
setStateIntervalMethod · 0.45

Tested by

no test coverage detected