]> 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 b9ca812fe6a7307e1f6592ca51c7abb66ba3ed61..fb14740de56962d14ba1bd225543a9e546052398 100644 (file)
@@ -24,6 +24,7 @@ void MonsterGO::Initialize(void)
        mStrength = 0;\r
        mDefense = 0;\r
        mExperience = 0;\r
+       mAlive = true;\r
 }\r
 \r
 MonsterGO::~MonsterGO()\r
@@ -138,6 +139,16 @@ 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 && mfkLevelId == right.mfkLevelId && mHealth == right.mHealth &&\r