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

Method isState

src/Engine/Game.cpp:575–578  ·  view source on GitHub ↗

* Returns whether current state is *state * @param state The state to test against the stack state * @return Is state the current state? */

Source from the content-addressed store, hash-verified

573 * @return Is state the current state?
574 */
575bool Game::isState(State *state) const
576{
577 return !_states.empty() && _states.back() == state;
578}
579
580/**
581 * Checks if the game is currently quitting.

Callers 2

thinkMethod · 0.80
finishBattleMethod · 0.80

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected