25 bool letsQuit =
false;
29 InputManager::update();
36 whatToDoNow = this->currentState->update();
40 case GameState::CONTINUE:
45 this->currentState->unload();
46 delete this->currentState;
47 this->currentState = NULL;
52 case GameState::GAME_START:
54 this->currentState->unload();
55 delete this->currentState;
58 this->currentState->load();
62 case GameState::MAIN_MENU:
64 this->currentState->unload();
65 delete this->currentState;
68 this->currentState->load();
76 if (this->currentState)
77 this->currentState->draw();
79 Utils::Time::delay_ms(100);