* Picks a craft to intercept the UFO. * @param action Pointer to an action. */
| 195 | * @param action Pointer to an action. |
| 196 | */ |
| 197 | void UfoDetectedState::btnInterceptClick(Action *) |
| 198 | { |
| 199 | _state->timerReset(); |
| 200 | _state->getGlobe()->center(_ufo->getLongitude(), _ufo->getLatitude()); |
| 201 | _game->pushState(new InterceptState(_game, _state->getGlobe(), 0, _ufo)); |
| 202 | } |
| 203 | |
| 204 | /** |
| 205 | * Centers on the UFO and returns to the previous screen. |
nothing calls this directly
no test coverage detected