Folded sdlrenderer code into Game(), since we'll be doing rendering on a per-state basis

This commit is contained in:
2011-06-27 22:35:52 -04:00
parent 5522cbc64c
commit 2bddf92001
7 changed files with 97 additions and 84 deletions

8
game.h
View File

@ -18,7 +18,7 @@ using std::stack;
class Game : public GameState
{
public:
Game() {}
Game(SDL_Surface* display);
~Game();
bool init();
@ -34,13 +34,15 @@ class Game : public GameState
private:
void render();
SDLRenderer renderer;
// data
GameData data;
static int NODE_RADIUS;
static int MAX_MOVE_DISTANCE;
// surfaces containing textures to draw
SDL_Surface* background;
};
#endif