]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv-2.0/libgameservgldl/src/GameLayer/GameObjects/MonsterGO.cpp
Revisited GameServ 2.0 and got it compiling in VS 2010!
[irc/gameservirc.git] / gameserv-2.0 / libgameservgldl / src / GameLayer / GameObjects / MonsterGO.cpp
index 62d5ae60f29d77df05c5502260c46dd828a59a39..fb14740de56962d14ba1bd225543a9e546052398 100644 (file)
@@ -18,12 +18,13 @@ MonsterGO::MonsterGO(const string &Id) : GameObject(Id)
 \r
 void MonsterGO::Initialize(void)\r
 {\r
-       mLevel = 0;\r
        mGold = 0;\r
        mHealth = 0;\r
        mMaxHealth = 0;\r
        mStrength = 0;\r
        mDefense = 0;\r
+       mExperience = 0;\r
+       mAlive = true;\r
 }\r
 \r
 MonsterGO::~MonsterGO()\r
@@ -46,14 +47,14 @@ string MonsterGO::Name(void) const
        return mName;\r
 }\r
 \r
-void MonsterGO::Level(const unsigned int &value)\r
+void MonsterGO::LevelId(const string &value)\r
 {\r
-       mLevel = value;\r
+       mfkLevelId = value;\r
 }\r
 \r
-unsigned int MonsterGO::Level(void) const\r
+string MonsterGO::LevelId(void) const\r
 {\r
-       return mLevel;\r
+       return mfkLevelId;\r
 }\r
 \r
 void MonsterGO::Strength(const unsigned int &value)\r
@@ -86,6 +87,16 @@ unsigned long int MonsterGO::Gold(void) const
        return mGold;\r
 }\r
 \r
+void MonsterGO::Experience(const unsigned long int &value)\r
+{\r
+       mExperience = value;\r
+}\r
+\r
+unsigned long int MonsterGO::Experience(void) const\r
+{\r
+       return mExperience;\r
+}\r
+\r
 void MonsterGO::Health(const unsigned int &value)\r
 {\r
        mHealth = value;\r
@@ -128,9 +139,19 @@ string MonsterGO::DeathCry(void) const
        return mDeathCry;\r
 }\r
 \r
+void MonsterGO::Alive(const bool &value)\r
+{\r
+       mAlive = value;\r
+}\r
+\r
+bool MonsterGO::Alive(void) const\r
+{\r
+       return mAlive;\r
+}\r
+\r
 bool MonsterGO::operator==(const MonsterGO &right) const\r
 {\r
-       return mId == right.mId && mLevel == right.mLevel && mHealth == right.mHealth &&\r
+       return mId == right.mId && mfkLevelId == right.mfkLevelId && mHealth == right.mHealth &&\r
                mDefense == right.mDefense && mDeathCry == right.mDeathCry &&\r
                mGold == right.mGold && mHealth == right.mHealth && \r
                mMaxHealth == right.mMaxHealth && mName == right.mName &&\r