* Animates the explosion further. * @return false If the animation is finished. */
| 46 | * @return false If the animation is finished. |
| 47 | */ |
| 48 | bool 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. |
nothing calls this directly
no outgoing calls
no test coverage detected