11 lines
207 B
C++
11 lines
207 B
C++
#include "gamestate.h"
|
|
|
|
void GameState::execute(stack<GameState*> &state_stack) throw(StateExit)
|
|
{
|
|
SDL_Event event;
|
|
while(SDL_PollEvent(&event))
|
|
handle_event(&event);
|
|
iterate();
|
|
render();
|
|
}
|