summaryrefslogtreecommitdiff
path: root/src/localplayer.h
diff options
context:
space:
mode:
authorBertram <bertram@cegetel.net>2010-03-04 15:04:14 +0100
committerBertram <yohanndotferreiraatorange.fr>2010-04-12 23:50:22 +0200
commitcd727d2223bc51f282bec29d666a0f5f30bdd151 (patch)
tree1d8cd6be12ec1ea42a088bb2b4a5705f1bac4ee0 /src/localplayer.h
parent27c7c5f725f5cf1e3393df9393b08fdc26057212 (diff)
downloadmana-client-cd727d2223bc51f282bec29d666a0f5f30bdd151.tar.gz
mana-client-cd727d2223bc51f282bec29d666a0f5f30bdd151.tar.bz2
mana-client-cd727d2223bc51f282bec29d666a0f5f30bdd151.tar.xz
mana-client-cd727d2223bc51f282bec29d666a0f5f30bdd151.zip
Reviewed the LocalPlayer::nextTile() function. The ManaServ movement system is functional!!
Introduced LocalPlayer::getNextWalkPosition(unsigned char dir) which takes care about the player next position while moving using keyboard. I removed the pixel scaler thing because it couldn't handle all the noticed cases and was rather heavy. There is still a bug in the movement system (nothing's perfect) but it's very rare and this is here in eAthena, too. So, I'll give a try at taking care of it once I'll have polished all of this a bit. Please try and give feedback!!
Diffstat (limited to 'src/localplayer.h')
-rw-r--r--src/localplayer.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/localplayer.h b/src/localplayer.h
index c97bfc4b..65653d50 100644
--- a/src/localplayer.h
+++ b/src/localplayer.h
@@ -117,6 +117,12 @@ class LocalPlayer : public Player
virtual void setAction(Action action, int attackType = 0);
/**
+ * Compute the next pathnode location when walking using keyboard.
+ * used by nextTile().
+ */
+ Position getNextWalkPosition(unsigned char dir);
+
+ /**
* Adds a new tile to the path when walking.
* @note Eathena
* Also, when specified, it picks up an item at the end of a path