treewars/gamestate.cpp

11 lines
207 B
C++
Raw Normal View History

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