From 35afca876ece89be5b282c73a200d0d3c5d27fe0 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sat, 16 Dec 2006 19:04:58 +0000 Subject: Fixed connection dialog visibility and fixed issues with walking one tile too many and changing direction towards an obstacle. --- src/localplayer.h | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'src/localplayer.h') diff --git a/src/localplayer.h b/src/localplayer.h index 7cad9bc4..b120969e 100644 --- a/src/localplayer.h +++ b/src/localplayer.h @@ -43,9 +43,15 @@ class LocalPlayer : public Player STR = 0, AGI, VIT, INT, DEX, LUK }; + /** + * Constructor. + */ LocalPlayer(Uint32 id, Uint16 job, Map *map); - virtual ~LocalPlayer(); + /** + * Destructor. + */ + ~LocalPlayer(); void setNetwork(Network *network) { mNetwork = network; } @@ -115,13 +121,16 @@ class LocalPlayer : public Player */ void setTarget(Being* target) { mTarget = target; } - void walk(unsigned char dir); - /** * Sets a new destination for this being to walk to. */ virtual void setDestination(Uint16 x, Uint16 y); + /** + * Sets a new direction to keep walking in. + */ + void setWalkingDir(int dir); + void raiseAttribute(Attribute attr); void raiseSkill(Uint16 skillId); @@ -155,6 +164,8 @@ class LocalPlayer : public Player std::auto_ptr mInventory; protected: + void walk(unsigned char dir); + Network *mNetwork; Being *mTarget; FloorItem *mPickUpTarget; -- cgit v1.2.3-70-g09d2