diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-25 15:43:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-25 15:43:51 +0300 |
commit | 4a21e45a63137009a654a212ea7512ecc2846648 (patch) | |
tree | 13e0b726bacb3f73d9bf215a4c195ea75d4f6a55 /src/avatar.h | |
parent | 5f97d3fd31bb5a17037610342ea09c21da9c47d3 (diff) | |
download | manaverse-4a21e45a63137009a654a212ea7512ecc2846648.tar.gz manaverse-4a21e45a63137009a654a212ea7512ecc2846648.tar.bz2 manaverse-4a21e45a63137009a654a212ea7512ecc2846648.tar.xz manaverse-4a21e45a63137009a654a212ea7512ecc2846648.zip |
Add consts to being class.
Diffstat (limited to 'src/avatar.h')
-rw-r--r-- | src/avatar.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/avatar.h b/src/avatar.h index 5ff0a8f75..d329f81a9 100644 --- a/src/avatar.h +++ b/src/avatar.h @@ -75,37 +75,37 @@ public: /** * Set the avatar's online status. */ - void setOnline(bool online) + void setOnline(const bool online) { mOnline = online; } int getHp() const { return mHp; } - void setHp(int hp) + void setHp(const int hp) { mHp = hp; } int getMaxHp() const { return mMaxHp; } - void setMaxHp(int maxHp) + void setMaxHp(const int maxHp) { mMaxHp = maxHp; } int getDamageHp() const { return mDamageHp; } - void setDamageHp(int damageHp) + void setDamageHp(const int damageHp) { mDamageHp = damageHp; } bool getDisplayBold() const { return mDisplayBold; } - void setDisplayBold(bool displayBold) + void setDisplayBold(const bool displayBold) { mDisplayBold = displayBold; } int getLevel() const { return mLevel; } - void setLevel(int level) + void setLevel(const int level) { mLevel = level; } std::string getMap() const @@ -117,49 +117,49 @@ public: int getX() const { return mX; } - void setX(int x) + void setX(const int x) { mX = x; } int getY() const { return mY; } - void setY(int y) + void setY(const int y) { mY = y; } int getType() const { return mType; } - void setType(int n) + void setType(const int n) { mType = n; } int getExp() const { return mExp; } - void setExp(int n) + void setExp(const int n) { mExp = n; } int getID() const { return mId; } - void setID(int id) + void setID(const int id) { mId = id; } int getCharId() const { return mCharId; } - void setCharId(int id) + void setCharId(const int id) { mCharId = id; } int getGender() const { return mGender; } - void setGender(int g) + void setGender(const int g) { mGender = g; } int getRace() const { return mRace; } - void setRace(int r) + void setRace(const int r) { mRace = r; } const std::string &getIp() const |