From 5141dc4a99b74358f2dd0f5f211c5069a630ce1b Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Sun, 19 Jul 2009 22:05:41 -0600 Subject: Merge StatusWindows Also some other small merges --- src/localplayer.h | 52 ++++++++++++++++++++++++++-------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'src/localplayer.h') diff --git a/src/localplayer.h b/src/localplayer.h index 4bcd43a3..1c57abaf 100644 --- a/src/localplayer.h +++ b/src/localplayer.h @@ -102,11 +102,7 @@ class LocalPlayer : public Player /** * Constructor. */ -#ifdef TMWSERV_SUPPORT - LocalPlayer(); -#else - LocalPlayer(int id, int job, Map *map); -#endif + LocalPlayer(int id= 65535, int job = 0, Map *map = NULL); /** * Destructor. @@ -272,13 +268,6 @@ class LocalPlayer : public Player void setInStorage(bool inStorage); #ifdef EATHENA_SUPPORT - Uint32 mCharId; /**< Used only during character selection. */ - - Uint32 mJobXp; - Uint32 mJobLevel; - Uint32 mXpForNextLevel, mJobXpForNextLevel; - Uint16 mMp, mMaxMp; - Uint16 mAttackRange; #endif @@ -288,22 +277,34 @@ class LocalPlayer : public Player int getMaxHp() const { return mMaxHp; } - void setHp(int value) - { mHp = value; } + void setHp(int value); - void setMaxHp(int value) - { mMaxHp = value; } + void setMaxHp(int value); int getLevel() const { return mLevel; } - void setLevel(int value) - { mLevel = value; } + void setLevel(int value); + + void setExp(int value); + + int getExp() const + { return mExp, mExpNeeded; } + + void setExpNeeded(int value); + + int getExpNeeded() const + { return mExpNeeded; } + + int setMP(int value); + + int getMP() const + { return mMp; } - void setLevelProgress(int percent); + int setMaxMP(int value); - int getLevelProgress() const - { return mLevelProgress; } + int getMaxMP() const + { return mMaxMp; } int getMoney() const { return mMoney; } @@ -336,14 +337,12 @@ class LocalPlayer : public Player int getCharacterPoints() const { return mCharacterPoints; } - void setCharacterPoints(int n) - { mCharacterPoints = n; } + void setCharacterPoints(int n); int getCorrectionPoints() const { return mCorrectionPoints; } - void setCorrectionPoints(int n) - { mCorrectionPoints = n; } + void setCorrectionPoints(int n); int getSkillPoints() const { return mSkillPoints; } @@ -380,8 +379,9 @@ class LocalPlayer : public Player std::map > mSkillExp; int mCharacterPoints; int mCorrectionPoints; - int mLevelProgress; int mLevel; + int mExp, mExpNeeded; + int mMp, mMaxMp; int mMoney; int mTotalWeight; int mMaxWeight; -- cgit v1.2.3-60-g2f50