summaryrefslogtreecommitdiff
path: root/src/localplayer.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2006-12-16 19:04:58 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2006-12-16 19:04:58 +0000
commit35afca876ece89be5b282c73a200d0d3c5d27fe0 (patch)
tree90033c7dfd025ab0d90304bfc5440c9aaa3bbcc5 /src/localplayer.h
parent201a9a7d4fdf1ff7cb8ffc75d606bfaf6d38a0f6 (diff)
downloadmana-35afca876ece89be5b282c73a200d0d3c5d27fe0.tar.gz
mana-35afca876ece89be5b282c73a200d0d3c5d27fe0.tar.bz2
mana-35afca876ece89be5b282c73a200d0d3c5d27fe0.tar.xz
mana-35afca876ece89be5b282c73a200d0d3c5d27fe0.zip
Fixed connection dialog visibility and fixed issues with walking one tile too
many and changing direction towards an obstacle.
Diffstat (limited to 'src/localplayer.h')
-rw-r--r--src/localplayer.h17
1 files changed, 14 insertions, 3 deletions
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<Inventory> mInventory;
protected:
+ void walk(unsigned char dir);
+
Network *mNetwork;
Being *mTarget;
FloorItem *mPickUpTarget;