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

Method btnCentreClick

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

119 * @param action Pointer to an action.
120 */
121void AlienTerrorState::btnCentreClick(Action *)
122{
123 _state->timerReset();
124 _state->getGlobe()->center(_terror->getLongitude(), _terror->getLatitude());
125 _game->popState();
126}
127
128/**
129 * 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