summaryrefslogtreecommitdiff
path: root/src/gui/viewport.h
diff options
context:
space:
mode:
authorBertram <bertram@cegetel.net>2010-02-09 02:54:09 +0100
committerBertram <bertram@cegetel.net>2010-02-09 03:20:48 +0100
commit6a6b36fa2d19a6ea9d39b975354709e7ad82281d (patch)
tree09451c98d6a711ffd45a7f5da5796549dbcdd173 /src/gui/viewport.h
parentf3ee70f4aa0b4df7388a4539440355bb066dc0d3 (diff)
downloadmana-6a6b36fa2d19a6ea9d39b975354709e7ad82281d.tar.gz
mana-6a6b36fa2d19a6ea9d39b975354709e7ad82281d.tar.bz2
mana-6a6b36fa2d19a6ea9d39b975354709e7ad82281d.tar.xz
mana-6a6b36fa2d19a6ea9d39b975354709e7ad82281d.zip
Pushed away some 32 hardcoded values.
Diffstat (limited to 'src/gui/viewport.h')
-rw-r--r--src/gui/viewport.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/viewport.h b/src/gui/viewport.h
index 1143297a..5fced324 100644
--- a/src/gui/viewport.h
+++ b/src/gui/viewport.h
@@ -144,6 +144,11 @@ class Viewport : public WindowContainer, public gcn::MouseListener,
*/
void scrollBy(float x, float y) { mPixelViewX += x; mPixelViewY += y; }
+ /**
+ * Returns the current map object.
+ */
+ Map *getCurrentMap() const { return mMap; }
+
private:
/**
* Finds a path from the player to the mouse, and draws it. This is for