From 62e480c2d887aae67add7ee7aed68463be897811 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 20 Dec 2008 14:52:10 +0000 Subject: map targetting --- src/client/map.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/client/map.h') diff --git a/src/client/map.h b/src/client/map.h index cbdc216..c7c1c29 100644 --- a/src/client/map.h +++ b/src/client/map.h @@ -17,10 +17,21 @@ public: Map(ui::Widget *parent = 0); virtual ~Map(); + inline size_t hover() const { return map_hover; } + + /// toggle the map window void toggle(); + /// hide the map window + virtual void hide(); + + /// called when the widget receives a key press + virtual bool on_keypress(const int key, const unsigned int modifier); + protected: virtual void draw(); + + size_t map_hover; }; -- cgit v1.2.3