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

Method btnInterceptClick

src/Geoscape/UfoDetectedState.cpp:197–202  ·  view source on GitHub ↗

* Picks a craft to intercept the UFO. * @param action Pointer to an action. */

Source from the content-addressed store, hash-verified

195 * @param action Pointer to an action.
196 */
197void 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.

Callers

nothing calls this directly

Calls 6

timerResetMethod · 0.80
centerMethod · 0.80
getGlobeMethod · 0.80
pushStateMethod · 0.80
getLongitudeMethod · 0.45
getLatitudeMethod · 0.45

Tested by

no test coverage detected