summaryrefslogtreecommitdiff
path: root/src/gui/viewport.h
diff options
context:
space:
mode:
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