Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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;