From e55638d081e2e1ff6fbc06e0e8ac0381a04308e7 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Wed, 15 Sep 2010 21:29:18 +0000 Subject: updated comments, updated buy menu, info support for map window, added const to target selection --- src/client/map.h | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'src/client/map.h') diff --git a/src/client/map.h b/src/client/map.h index 1fc1547..e0d8a2d 100644 --- a/src/client/map.h +++ b/src/client/map.h @@ -7,9 +7,11 @@ #ifndef __INCLUDED_CLIENT_MAP_H__ #define __INCLUDED_CLIENT_MAP_H__ -#include "ui/window.h" -#include "ui/label.h" #include "core/entity.h" +#include "core/info.h" +#include "ui/label.h" +#include "ui/scrollpane.h" +#include "ui/window.h" namespace client { @@ -24,6 +26,9 @@ public: return map_hover; } + /// set the map target + void set_target(const core::Entity *entity); + /// toggle the map window void toggle(); @@ -37,12 +42,19 @@ public: virtual bool on_keypress(const int key, const unsigned int modifier); protected: + virtual void resize(); + virtual void draw(); + ui::Label *map_targetlabel; + ui::ScrollPane *map_scrollpane; + unsigned int map_hover; + const core::Entity *map_target; - core::Entity *map_target; - ui::Label *map_targetlabel; + const core::Info *map_inforecord; + unsigned long map_infotimestamp; + ui::Text map_infotext; }; -- cgit v1.2.3