2011-06-29 01:38:18 +00:00
|
|
|
#include "gamestate.h"
|
|
|
|
|
2011-06-30 21:21:46 +00:00
|
|
|
void GameState::execute() throw(StateExit)
|
2011-06-29 01:38:18 +00:00
|
|
|
{
|
|
|
|
SDL_Event event;
|
|
|
|
while(SDL_PollEvent(&event))
|
|
|
|
handle_event(&event);
|
|
|
|
iterate();
|
|
|
|
render();
|
|
|
|
}
|
2011-06-30 21:21:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
void GameState::on_exit()
|
|
|
|
{
|
|
|
|
throw StateExit();
|
|
|
|
}
|