#include "gamestate.h" void GameState::execute() throw(StateExit) { SDL_Event event; while(SDL_PollEvent(&event)) handle_event(&event); iterate(); render(); } void GameState::on_exit() { throw StateExit(); }