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

Method pushState

src/Engine/Game.cpp:413–417  ·  view source on GitHub ↗

* Pushes a new state into the top of the stack and initializes it. * The new state will be used once the next game cycle starts. * @param state Pointer to the new state. */

Source from the content-addressed store, hash-verified

411 * @param state Pointer to the new state.
412 */
413void Game::pushState(State *state)
414{
415 _states.push_back(state);
416 _init = false;
417}
418
419/**
420 * Pops the last state from the top of the stack. Since states

Callers 15

btnRankClickMethod · 0.80
btnOkClickMethod · 0.80
thinkMethod · 0.80
btnOkClickMethod · 0.80
handleAIMethod · 0.80
endTurnMethod · 0.80
showInfoBoxQueueMethod · 0.80
handlePanickingUnitMethod · 0.80
primaryActionMethod · 0.80
convertUnitMethod · 0.80
btnOkClickMethod · 0.80

Calls

no outgoing calls

Tested by 1

btnGotoBaseClickMethod · 0.64