summaryrefslogtreecommitdiff
path: root/src/gui/gui.h
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-11-17 15:54:20 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-11-17 15:54:20 +0000
commitc2edfcfe9c36fbe58e34b50e4b20a6af8de0b32e (patch)
treec9fdf062f1b6111868ad0784249e87f1ab21eacd /src/gui/gui.h
parenta6b77bc69ba523625bafcb33c4c7f94fdda96af0 (diff)
downloadmana-client-c2edfcfe9c36fbe58e34b50e4b20a6af8de0b32e.tar.gz
mana-client-c2edfcfe9c36fbe58e34b50e4b20a6af8de0b32e.tar.bz2
mana-client-c2edfcfe9c36fbe58e34b50e4b20a6af8de0b32e.tar.xz
mana-client-c2edfcfe9c36fbe58e34b50e4b20a6af8de0b32e.zip
Added mouse following support.
Diffstat (limited to 'src/gui/gui.h')
-rw-r--r--src/gui/gui.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gui/gui.h b/src/gui/gui.h
index c4c47a88..0cb3f60b 100644
--- a/src/gui/gui.h
+++ b/src/gui/gui.h
@@ -83,6 +83,18 @@ class Gui : public gcn::Gui, public gcn::MouseListener
mousePress(int mx, int my, int button);
/**
+ * Handles mouse move on map
+ */
+ void
+ mouseMotion(int mx, int my);
+
+ /**
+ * Handles mouse button release on map.
+ */
+ void
+ mouseRelease(int mx, int my, int button);
+
+ /**
* Return game font
*/
gcn::Font*
@@ -122,6 +134,8 @@ class Gui : public gcn::Gui, public gcn::MouseListener
PopupMenu *mPopup; /**< Popup window */
bool mPopupActive;
+ bool mPlayerFollowMouse;
+ int mWalkTime;
};
extern Gui *gui; /**< The GUI system */