Added ability to actually build different unit types, as well as icons to distinguish them

This commit is contained in:
2011-07-03 15:16:00 -04:00
parent 7744bad7c7
commit fc0c0f26fd
10 changed files with 75 additions and 36 deletions

4
game.h
View File

@ -40,6 +40,7 @@ class Game : public GameState
private:
void draw_stats(Vertex* v);
void draw_button(MenuButton* button);
void draw_node(Vertex* v);
void handle_button_press(ButtonAction action);
@ -52,6 +53,9 @@ class Game : public GameState
// surfaces containing textures to draw
SDL_Surface* background;
TTF_Font* font;
SDL_Surface* attacker_icon;
SDL_Surface* defender_icon;
SDL_Surface* producer_icon;
// menu buttons
list<MenuButton*> buttons;