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

Method btnInterceptClick

src/Geoscape/AlienTerrorState.cpp:110–115  ·  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

108 * @param action Pointer to an action.
109 */
110void AlienTerrorState::btnInterceptClick(Action *)
111{
112 _state->timerReset();
113 _state->getGlobe()->center(_terror->getLongitude(), _terror->getLatitude());
114 _game->pushState(new InterceptState(_game, _state->getGlobe(), 0, _terror));
115}
116
117/**
118 * 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