1 #ifndef headquarter_info_h 2 #define headquarter_info_h 3 4 5 #include "base_info.h" 6 #include "components/gui_button.h" 7 #include "components/action_listener.h" 8 #include "components/gui_location_view_t.h" 9 10 #include "../utils/cbuffer_t.h" 11 12 class gebaeude_t; 13 class player_t; 14 15 class headquarter_info_t : public base_infowin_t, private action_listener_t 16 { 17 button_t upgrade; 18 cbuffer_t headquarter_tooltip; 19 player_t *player; 20 location_view_t headquarter_view; 21 22 void update(); 23 public: 24 headquarter_info_t(player_t* player); 25 26 void draw(scr_coord pos, scr_size size) OVERRIDE; 27 28 bool action_triggered(gui_action_creator_t *comp, value_t extra) OVERRIDE; 29 }; 30 31 #endif 32