diff options
Diffstat (limited to 'src/localplayer.h')
-rw-r--r-- | src/localplayer.h | 15 |
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; |