* Returns whether current state is *state * @param state The state to test against the stack state * @return Is state the current state? */
| 573 | * @return Is state the current state? |
| 574 | */ |
| 575 | bool Game::isState(State *state) const |
| 576 | { |
| 577 | return !_states.empty() && _states.back() == state; |
| 578 | } |
| 579 | |
| 580 | /** |
| 581 | * Checks if the game is currently quitting. |
no test coverage detected