summaryrefslogtreecommitdiff
path: root/src/being/being.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-30 22:37:01 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-30 22:37:01 +0300
commitb78cc1c9f70f7add1c66c6a40b55b9add71de6df (patch)
tree7c3bb0aa2c2737ba478814c79e466f707f7e35b7 /src/being/being.h
parentd82994bca93b4278c4751a2a4c1313ba2f41bd4b (diff)
downloadManaVerse-b78cc1c9f70f7add1c66c6a40b55b9add71de6df.tar.gz
ManaVerse-b78cc1c9f70f7add1c66c6a40b55b9add71de6df.tar.bz2
ManaVerse-b78cc1c9f70f7add1c66c6a40b55b9add71de6df.tar.xz
ManaVerse-b78cc1c9f70f7add1c66c6a40b55b9add71de6df.zip
Add karma field to beings.
Diffstat (limited to 'src/being/being.h')
-rw-r--r--src/being/being.h7
1 files changed, 7 insertions, 0 deletions
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;