* Runs the dogfighter timers. */
| 569 | * Runs the dogfighter timers. |
| 570 | */ |
| 571 | void DogfightState::think() |
| 572 | { |
| 573 | if(!_endDogfight) |
| 574 | { |
| 575 | _moveTimer->think(this, 0); |
| 576 | if(!_endDogfight && !_minimized) // check _endDogfight again, because moveTimer can change it |
| 577 | { |
| 578 | _animTimer->think(this, 0); |
| 579 | _w1Timer->think(this, 0); |
| 580 | _w2Timer->think(this, 0); |
| 581 | _ufoWtimer->think(this, 0); |
| 582 | _ufoEscapeTimer->think(this, 0); |
| 583 | _craftDamageAnimTimer->think(this, 0); |
| 584 | } |
| 585 | else if(!_endDogfight && (_craft->getDestination() != _ufo || _ufo->getStatus() == Ufo::LANDED)) |
| 586 | { |
| 587 | endDogfight(); |
| 588 | } |
| 589 | } |
| 590 | } |
| 591 | |
| 592 | /** |
| 593 | * Animates interceptor damage by changing the color and redrawing the image. |
nothing calls this directly
no test coverage detected