summaryrefslogtreecommitdiff
path: root/src/localplayer.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-08-23 14:14:51 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-08-23 14:14:51 +0000
commit5b755a2a6afdba9d07703c3bf5447bf314d842ab (patch)
tree9c8c1808283d5ecc954668fc53d76d0252eec430 /src/localplayer.h
parent4b8df221acc3bd3e681357df912bdbc7a1ce6c3f (diff)
downloadmana-client-5b755a2a6afdba9d07703c3bf5447bf314d842ab.tar.gz
mana-client-5b755a2a6afdba9d07703c3bf5447bf314d842ab.tar.bz2
mana-client-5b755a2a6afdba9d07703c3bf5447bf314d842ab.tar.xz
mana-client-5b755a2a6afdba9d07703c3bf5447bf314d842ab.zip
Changed XP gaining effect to appear on the player instead.
Diffstat (limited to 'src/localplayer.h')
-rw-r--r--src/localplayer.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/localplayer.h b/src/localplayer.h
index 9be185bf..ab519185 100644
--- a/src/localplayer.h
+++ b/src/localplayer.h
@@ -173,14 +173,19 @@ class LocalPlayer : public Player
void revive();
/**
- * Updates the xp value, if a monster was killed then it makes a call
- * to show xp.
+ * Sets the amount of XP. Shows XP gaining effect if the player is on
+ * a map.
*/
- void refreshXp(Uint32 xp);
+ void setXp(int xp);
+
+ /**
+ * Returns the amount of experience points.
+ */
+ int getXp() const { return mXp; }
Uint32 mCharId;
- Uint32 mXp, mJobXp;
+ Uint32 mJobXp;
Uint16 mLevel;
Uint32 mJobLevel;
Uint32 mXpForNextLevel, mJobXpForNextLevel;
@@ -207,6 +212,8 @@ class LocalPlayer : public Player
protected:
void walk(unsigned char dir);
+ int mXp; /**< Experience points. */
+
Network *mNetwork;
Being *mTarget;
FloorItem *mPickUpTarget;