* Initializes the state. */
| 58 | * Initializes the state. |
| 59 | */ |
| 60 | void 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. |
nothing calls this directly
no test coverage detected