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

Method animate

src/Battlescape/Explosion.cpp:48–59  ·  view source on GitHub ↗

* Animates the explosion further. * @return false If the animation is finished. */

Source from the content-addressed store, hash-verified

46 * @return false If the animation is finished.
47 */
48bool Explosion::animate()
49{
50 _currentFrame++;
51 if ((_hit && _currentFrame == 4) || (_big && _currentFrame == 8) || (!_big && _currentFrame == _startFrame+10))
52 {
53 return false;
54 }
55 else
56 {
57 return true;
58 }
59}
60
61/**
62 * Gets the current position in voxel space.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected