diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-30 22:37:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-30 22:37:01 +0300 |
commit | b78cc1c9f70f7add1c66c6a40b55b9add71de6df (patch) | |
tree | 7c3bb0aa2c2737ba478814c79e466f707f7e35b7 /src/being | |
parent | d82994bca93b4278c4751a2a4c1313ba2f41bd4b (diff) | |
download | ManaVerse-b78cc1c9f70f7add1c66c6a40b55b9add71de6df.tar.gz ManaVerse-b78cc1c9f70f7add1c66c6a40b55b9add71de6df.tar.bz2 ManaVerse-b78cc1c9f70f7add1c66c6a40b55b9add71de6df.tar.xz ManaVerse-b78cc1c9f70f7add1c66c6a40b55b9add71de6df.zip |
Add karma field to beings.
Diffstat (limited to 'src/being')
-rw-r--r-- | src/being/being.cpp | 1 | ||||
-rw-r--r-- | src/being/being.h | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp index 3cc51ef9d..7d054fc97 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -200,6 +200,7 @@ Being::Being(const int id, mPvpRank(0), mNumber(100), mUsageCounter(1), + mKarma(0), mLook(0U), mHairColor(0), mErased(false), diff --git a/src/being/being.h b/src/being/being.h index a65fb1af0..5f95fbfed 100644 --- a/src/being/being.h +++ b/src/being/being.h @@ -899,6 +899,12 @@ class Being notfinal : public ActorSprite, const ChatObject *getChat() const { return mChat; } + void setKarma(const int karma) + { mKarma = karma; } + + int getKarma() const + { return mKarma; } + protected: /** * Updates name's location. @@ -1065,6 +1071,7 @@ class Being notfinal : public ActorSprite, unsigned int mPvpRank; unsigned int mNumber; int mUsageCounter; + int mKarma; uint8_t mLook; unsigned char mHairColor; bool mErased; |