Refactored a wee bit of code in the GameStack... stack, and started building the title screen code

This commit is contained in:
2011-06-28 21:38:18 -04:00
parent 9961d177fd
commit 6a4b1c4cf2
7 changed files with 76 additions and 14 deletions

5
game.h
View File

@ -21,9 +21,11 @@ class Game : public GameState
~Game();
bool init();
void execute(stack<GameState*> &state_stack) throw(StateExit);
protected:
void render();
void iterate() {}
// event handlers
void on_exit();
void on_lbutton_down(int x, int y);
@ -31,7 +33,6 @@ class Game : public GameState
void on_key_down(SDLKey sym, SDLMod mod, Uint16 unicode);
private:
void render();
// data
GameData data;