17 lines
232 B
C++
17 lines
232 B
C++
#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();
|
|
}
|