summaryrefslogtreecommitdiff
path: root/src/gui/viewport.h
diff options
context:
space:
mode:
authorYohann Ferreira <bertram@cegetel.net>2008-04-17 20:14:24 +0000
committerYohann Ferreira <bertram@cegetel.net>2008-04-17 20:14:24 +0000
commitf43ce278866a2c42f67f75972c2e4abe46f8fd82 (patch)
tree95650923c9ba0bde20fe8eea86981c6d733124e7 /src/gui/viewport.h
parent346442e0aa15705910dd12e61e2a662fba0fced6 (diff)
downloadMana-f43ce278866a2c42f67f75972c2e4abe46f8fd82.tar.gz
Mana-f43ce278866a2c42f67f75972c2e4abe46f8fd82.tar.bz2
Mana-f43ce278866a2c42f67f75972c2e4abe46f8fd82.tar.xz
Mana-f43ce278866a2c42f67f75972c2e4abe46f8fd82.zip
Moved walking calls flooding control when dragging mouse to viewport.
Diffstat (limited to 'src/gui/viewport.h')
-rw-r--r--src/gui/viewport.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/viewport.h b/src/gui/viewport.h
index c8f7a9ec..cb47b5fe 100644
--- a/src/gui/viewport.h
+++ b/src/gui/viewport.h
@@ -39,6 +39,9 @@ class PopupMenu;
class Graphics;
class SimpleAnimation;
+/** Delay between two mouse calls when dragging mouse and move the player */
+const int walkingMouseDelay = 500;
+
/**
* The viewport on the map. Displays the current map and handles mouse input
* and the popup menu.
@@ -182,6 +185,7 @@ class Viewport : public WindowContainer, public gcn::MouseListener,
bool mPlayerFollowMouse;
int mWalkTime;
+ int mLocalWalkTime; /**< Timestamp before the next walk can be sent. */
PopupMenu *mPopupMenu; /**< Popup menu. */
};