* Animates interceptor damage by changing the color and redrawing the image. */
| 593 | * Animates interceptor damage by changing the color and redrawing the image. |
| 594 | */ |
| 595 | void 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. |
nothing calls this directly
no outgoing calls
no test coverage detected