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

Method btnGotoBaseClick

src/Geoscape/ProductionCompleteState.cpp:132–144  ·  view source on GitHub ↗

* Goes to the base for the respective production. * @param action Pointer to an action. */

Source from the content-addressed store, hash-verified

130 * @param action Pointer to an action.
131 */
132void ProductionCompleteState::btnGotoBaseClick(Action *)
133{
134 _state->timerReset();
135 _game->popState();
136 if (_endType != PROGRESS_CONSTRUCTION)
137 {
138 _game->pushState(new ManufactureState(_game, _base));
139 }
140 else
141 {
142 _game->pushState(new BasescapeState(_game, _base, _state->getGlobe()));
143 }
144}
145
146}

Callers

nothing calls this directly

Calls 4

timerResetMethod · 0.80
pushStateMethod · 0.80
getGlobeMethod · 0.80
popStateMethod · 0.45

Tested by

no test coverage detected