summaryrefslogtreecommitdiff
path: root/src/localplayer.h
diff options
context:
space:
mode:
authorBertram <bertram@cegetel.net>2009-10-09 03:43:13 +0200
committerBertram <bertram@cegetel.net>2009-10-09 03:43:13 +0200
commit0a3e2c75c5fcc359e257548267d5ffae6726e2db (patch)
treefde0bb90528bc10a12be7a0a9101befbb954f29e /src/localplayer.h
parent07c92a402d3455bb2785c1fc69d03263888793b9 (diff)
downloadmana-0a3e2c75c5fcc359e257548267d5ffae6726e2db.tar.gz
mana-0a3e2c75c5fcc359e257548267d5ffae6726e2db.tar.bz2
mana-0a3e2c75c5fcc359e257548267d5ffae6726e2db.tar.xz
mana-0a3e2c75c5fcc359e257548267d5ffae6726e2db.zip
Mostly fixed keyboard movement on TMWserv.
- Making sure that keyboard and mouse are fully working on eAthena. - Making sure the mouse code isn't broken again. There are some glitches left but it's coming! What's left to be fixed: - Come a little closer to walls (localPlyer::nextStep() improvement to be done). - Adapt the next Step range according to the being speed. (again in nextStep()). - Handle more nicely player's direction when walking diagonally. - Get player's speed from server. Enjoy :)
Diffstat (limited to 'src/localplayer.h')
-rw-r--r--src/localplayer.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/localplayer.h b/src/localplayer.h
index e0d5675d..28a1c286 100644
--- a/src/localplayer.h
+++ b/src/localplayer.h
@@ -122,13 +122,14 @@ class LocalPlayer : public Player
virtual void setAction(Action action, int attackType = 0);
-#ifdef EATHENA_SUPPORT
/**
* Adds a new step when walking before calling super. Also, when
* specified it picks up an item at the end of a path.
*/
- virtual void nextStep();
-#endif
+ virtual void nextStep()
+ { nextStep(0); }
+
+ virtual void nextStep(unsigned char dir);
/**
* Returns the player's inventory.
@@ -386,7 +387,7 @@ class LocalPlayer : public Player
// Colors don't change for local player
virtual void updateColors() {}
- void walk(unsigned char dir);
+ void startWalking(unsigned char dir);
bool mInStorage; /**< Whether storage is currently accessible */