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

Method btnCentreClick

src/Geoscape/UfoDetectedState.cpp:208–213  ·  view source on GitHub ↗

* Centers on the UFO and returns to the previous screen. * @param action Pointer to an action. */

Source from the content-addressed store, hash-verified

206 * @param action Pointer to an action.
207 */
208void UfoDetectedState::btnCentreClick(Action *)
209{
210 _state->timerReset();
211 _state->getGlobe()->center(_ufo->getLongitude(), _ufo->getLatitude());
212 _game->popState();
213}
214
215/**
216 * Returns to the previous screen.

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected