summaryrefslogtreecommitdiff
path: root/src/localplayer.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-01-04 02:20:38 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-01-04 02:20:38 +0000
commit4eec29ac0f6a9b05562ac0fbe3d4e5d7e82deeac (patch)
tree0b18ed6970f8fdd6750459e6f9032e444d253580 /src/localplayer.h
parente160ba567bf3d2ae915e67c12c13e213c1a32a62 (diff)
downloadmana-4eec29ac0f6a9b05562ac0fbe3d4e5d7e82deeac.tar.gz
mana-4eec29ac0f6a9b05562ac0fbe3d4e5d7e82deeac.tar.bz2
mana-4eec29ac0f6a9b05562ac0fbe3d4e5d7e82deeac.tar.xz
mana-4eec29ac0f6a9b05562ac0fbe3d4e5d7e82deeac.zip
Merged 0.0 changes from revision 2898 to 2988 to trunk.
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 59b59812..765b7cca 100644
--- a/src/localplayer.h
+++ b/src/localplayer.h
@@ -42,9 +42,15 @@ class LocalPlayer : public Player
STR = 0, AGI, VIT, INT, DEX, LUK
};
+ /**
+ * Constructor.
+ */
LocalPlayer();
- virtual ~LocalPlayer();
+ /**
+ * Destructor.
+ */
+ ~LocalPlayer();
virtual void logic();
@@ -111,13 +117,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.
*/
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);
@@ -151,6 +160,8 @@ class LocalPlayer : public Player
std::auto_ptr<Inventory> mInventory;
protected:
+ void walk(unsigned char dir);
+
Being *mTarget;
FloorItem *mPickUpTarget;