Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2012-10-07 21:46:02 +0000
committerStijn Buys <ingar@osirion.org>2012-10-07 21:46:02 +0000
commit60b0e02ab6b8910b3870d16a6eef9d67c6a6f34e (patch)
tree8702424723a66ad2d65298d63160ef25ef83898e /src/client/mapwidget.h
parente065de3bf7f15b895c7a22e9fdbf8125c94406b3 (diff)
Add galactic map, make it possible to other zones on the map.
Diffstat (limited to 'src/client/mapwidget.h')
-rw-r--r--src/client/mapwidget.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/client/mapwidget.h b/src/client/mapwidget.h
index fb5a905..0482330 100644
--- a/src/client/mapwidget.h
+++ b/src/client/mapwidget.h
@@ -12,9 +12,11 @@
namespace client {
-class MapWidget : public ui::Widget {
+class MapWidget : public ui::Widget
+{
public:
MapWidget(ui::Widget *parent = 0);
+
virtual ~MapWidget();
void set_zoom(const float zoom);
@@ -23,13 +25,24 @@ public:
void set_target(const core::Entity *entity);
- inline unsigned int hover() {
+ inline unsigned int hover() const {
return mapwidget_hover_id;
}
+
+ inline const core::Entity *target() const {
+ return mapwidget_target;
+ }
+
+ inline core::Zone *zone() const {
+ return mapwidget_zone;
+ }
protected:
virtual void draw();
+ /// called when the widget receives a key press
+ virtual bool on_keypress(const int key, const unsigned int modifier);
+
private:
float mapwidget_zoom;