summaryrefslogtreecommitdiff
path: root/src/gui/viewport.h
diff options
context:
space:
mode:
authorBertram <bertram@cegetel.net>2009-10-29 14:31:41 +0100
committerBertram <bertram@cegetel.net>2009-10-29 14:31:41 +0100
commit168673240a70dcb551ac2b1ba8188c559537c8b7 (patch)
tree757e79f04c6ff633e8bdc9bdb2a5e402636d58d7 /src/gui/viewport.h
parent6d2a6ee01523bbec105cd2e6ce9a24ab7c1094f2 (diff)
downloadMana-168673240a70dcb551ac2b1ba8188c559537c8b7.tar.gz
Mana-168673240a70dcb551ac2b1ba8188c559537c8b7.tar.bz2
Mana-168673240a70dcb551ac2b1ba8188c559537c8b7.tar.xz
Mana-168673240a70dcb551ac2b1ba8188c559537c8b7.zip
Cleaned up the viewport code, when dealing with mouse movement.
Now, both eAthena and ManaServ clients follow the mouse correctly when it is dragged.
Diffstat (limited to 'src/gui/viewport.h')
-rw-r--r--src/gui/viewport.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gui/viewport.h b/src/gui/viewport.h
index 39dfaa33..e4311222 100644
--- a/src/gui/viewport.h
+++ b/src/gui/viewport.h
@@ -149,12 +149,17 @@ class Viewport : public WindowContainer, public gcn::MouseListener,
* Finds a path from the player to the mouse, and draws it. This is for
* debug purposes.
*/
- void drawDebugPath(Graphics *graphics);
+ void _drawDebugPath(Graphics *graphics);
/**
* Draws the given path.
*/
- void drawPath(Graphics *graphics, const Path &path);
+ void _drawPath(Graphics *graphics, const Path &path);
+
+ /**
+ * Make the player go to the mouse position.
+ */
+ void _followMouse();
Map *mMap; /**< The current map. */