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

Method btnBasesClick

src/Geoscape/GeoscapeState.cpp:1826–1837  ·  view source on GitHub ↗

* Goes to the Basescape screen. * @param action Pointer to an action. */

Source from the content-addressed store, hash-verified

1824 * @param action Pointer to an action.
1825 */
1826void GeoscapeState::btnBasesClick(Action *)
1827{
1828 timerReset();
1829 if (!_game->getSavedGame()->getBases()->empty())
1830 {
1831 _game->pushState(new BasescapeState(_game, _game->getSavedGame()->getSelectedBase(), _globe));
1832 }
1833 else
1834 {
1835 _game->pushState(new BasescapeState(_game, 0, _globe));
1836 }
1837}
1838
1839/**
1840 * Goes to the Graphs screen.

Callers

nothing calls this directly

Calls 5

getBasesMethod · 0.80
getSavedGameMethod · 0.80
pushStateMethod · 0.80
getSelectedBaseMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected