* 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. */
| 411 | * @param state Pointer to the new state. |
| 412 | */ |
| 413 | void 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 |
no outgoing calls