Refactored code to do dynamic_casts in fewer places

This commit is contained in:
2011-07-03 16:57:47 -04:00
parent ed6e0c2bf2
commit c5d6167e8c
4 changed files with 35 additions and 37 deletions

4
game.h
View File

@ -38,9 +38,9 @@ class Game : public GameState
bool right, bool middle);
private:
void draw_stats(Vertex* v);
void draw_stats(GameVertex* v);
void draw_button(MenuButton* button);
void draw_node(Vertex* v);
void draw_node(GameVertex* v);
void handle_button_press(ButtonAction action);