diff options
Diffstat (limited to 'src/mapwidget.h')
-rw-r--r-- | src/mapwidget.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/mapwidget.h b/src/mapwidget.h index 2dde34f..d418602 100644 --- a/src/mapwidget.h +++ b/src/mapwidget.h @@ -42,6 +42,11 @@ public: inline EntityWidget *selected() { return mapwidget_selected; } + + /** + * @return the current map zoom factor + * */ + float zoom() const; protected: @@ -122,14 +127,16 @@ private slots: private: typedef QList<EntityWidget *> Entities; - int mapwidget_zoom; int dragstart_x; int dragstart_y; - int center_x; - int center_y; - bool is_dragging; + + // zoom factor, as a power of 2 + int mapwidget_zoomfactor; + + // center of the map, in world coordinates + Vector3f mapwidget_center; Entities mapwidget_enties; EntityWidget *mapwidget_selected; |