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

Method miniClick

src/Basescape/BasescapeState.cpp:486–494  ·  view source on GitHub ↗

* Selects a new base to display. * @param action Pointer to an action. */

Source from the content-addressed store, hash-verified

484 * @param action Pointer to an action.
485 */
486void BasescapeState::miniClick(Action *)
487{
488 size_t base = _mini->getHoveredBase();
489 if (base < _game->getSavedGame()->getBases()->size())
490 {
491 _base = _game->getSavedGame()->getBases()->at(base);
492 init();
493 }
494}
495
496/**
497 * Selects a new base to display.

Callers

nothing calls this directly

Calls 4

initFunction · 0.85
getHoveredBaseMethod · 0.80
getBasesMethod · 0.80
getSavedGameMethod · 0.80

Tested by

no test coverage detected