summaryrefslogtreecommitdiff
path: root/src/gui/viewport.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-08 16:05:17 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-08 23:04:34 +0300
commitd9c2fc9b34fbb291b4d42bb1070fdff07cd56914 (patch)
treeec40e03113e8ef0aef5e80af57a5a18d90a948c9 /src/gui/viewport.h
parent4fb22939a08cc361cbe250a8de9001a92e3d5b64 (diff)
downloadmanaverse-d9c2fc9b34fbb291b4d42bb1070fdff07cd56914.tar.gz
manaverse-d9c2fc9b34fbb291b4d42bb1070fdff07cd56914.tar.bz2
manaverse-d9c2fc9b34fbb291b4d42bb1070fdff07cd56914.tar.xz
manaverse-d9c2fc9b34fbb291b4d42bb1070fdff07cd56914.zip
Move code for converting mouse position to tile into separate function.
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 fa2dd7508..f682cd96f 100644
--- a/src/gui/viewport.h
+++ b/src/gui/viewport.h
@@ -204,6 +204,11 @@ class Viewport final : public WindowContainer,
void walkByMouse(const MouseEvent &event);
+ void getMouseTile(const int x,
+ const int y,
+ int &destX,
+ int &destY);
+
/**
* Make the player go to the mouse position.
*/