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

Method animateCraftDamage

src/Geoscape/DogfightState.cpp:595–607  ·  view source on GitHub ↗

* Animates interceptor damage by changing the color and redrawing the image. */

Source from the content-addressed store, hash-verified

593 * Animates interceptor damage by changing the color and redrawing the image.
594 */
595void DogfightState::animateCraftDamage()
596{
597 if(_minimized)
598 {
599 return;
600 }
601 --_currentCraftDamageColor;
602 if(_currentCraftDamageColor < 13)
603 {
604 _currentCraftDamageColor = 14;
605 }
606 drawCraftDamage();
607}
608
609/**
610 * Draws interceptor damage according to percentage of HP's left.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected