From 5b755a2a6afdba9d07703c3bf5447bf314d842ab Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Thu, 23 Aug 2007 14:14:51 +0000 Subject: Changed XP gaining effect to appear on the player instead. --- src/localplayer.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'src/localplayer.h') 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; -- cgit v1.2.3-60-g2f50