diff options
author | Bertram <bertram@cegetel.net> | 2009-10-16 01:12:09 +0200 |
---|---|---|
committer | Bertram <bertram@cegetel.net> | 2009-10-16 01:12:09 +0200 |
commit | ae8c3e89728ddc1f8e91e6e54ded039fd1fa600f (patch) | |
tree | 0191e06aeab32bda1f3fa6fcfdbee5714d95dc5a /src/localplayer.h | |
parent | 7da8ae1c1463a9659d776ff497ad18157cc2917c (diff) | |
download | mana-ae8c3e89728ddc1f8e91e6e54ded039fd1fa600f.tar.gz mana-ae8c3e89728ddc1f8e91e6e54ded039fd1fa600f.tar.bz2 mana-ae8c3e89728ddc1f8e91e6e54ded039fd1fa600f.tar.xz mana-ae8c3e89728ddc1f8e91e6e54ded039fd1fa600f.zip |
Made the keyboard walking pixel exact again.
What's left is working on player corner handling and directions while walking.
Diffstat (limited to 'src/localplayer.h')
-rw-r--r-- | src/localplayer.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/localplayer.h b/src/localplayer.h index 28a1c286..9229c583 100644 --- a/src/localplayer.h +++ b/src/localplayer.h @@ -367,6 +367,10 @@ class LocalPlayer : public Player std::pair<int, int> getExperience(int skill); + /** Tells the path has been set by mouse */ + void pathSetByMouse() + { mPathSetByMouse = true; } + bool mUpdateName; /** Whether or not the name settings have changed */ bool mMapInitialized; /** Whether or not the map is available yet */ @@ -424,6 +428,7 @@ class LocalPlayer : public Player bool mKeepAttacking; /** Whether or not to continue to attack */ int mLastAction; /**< Time stamp of the last action, -1 if none. */ int mWalkingDir; /**< The direction the player is walking in. */ + bool mPathSetByMouse; /**< Tells if the path was set using mouse */ int mDestX; /**< X coordinate of destination. */ int mDestY; /**< Y coordinate of destination. */ |