]>
jfr.im git - irc/gameservirc.git/blob - gameserv-2.0/libgameservgldl/src/GameLayer/GameObjects/MonsterGO.cpp
1 #include <GameServ/GameLayer/GameObjects/GameObject.h>
2 using GameServ::GameLayer::GameObjects::GameObject
;
3 #include <GameServ/GameLayer/GameObjects/MonsterGO.h>
4 using GameServ::GameLayer::GameObjects::MonsterGO
;
9 MonsterGO::MonsterGO() : GameObject()
14 MonsterGO::MonsterGO(const string
&Id
) : GameObject(Id
)
19 void MonsterGO::Initialize(void)
29 MonsterGO::~MonsterGO()
33 MonsterGO
*MonsterGO::Clone(void) const
35 return new MonsterGO(*this);
38 void MonsterGO::Name(const string
&value
)
40 assert(!value
.empty());
44 string
MonsterGO::Name(void) const
49 void MonsterGO::Level(const unsigned int &value
)
54 unsigned int MonsterGO::Level(void) const
59 void MonsterGO::Strength(const unsigned int &value
)
64 unsigned int MonsterGO::Strength(void) const
69 void MonsterGO::Defense(const unsigned int &value
)
74 unsigned int MonsterGO::Defense(void) const
79 void MonsterGO::Gold(const unsigned long int &value
)
84 unsigned long int MonsterGO::Gold(void) const
89 void MonsterGO::Health(const unsigned int &value
)
94 unsigned int MonsterGO::Health(void) const
99 void MonsterGO::MaxHealth(const unsigned int &value
)
104 unsigned int MonsterGO::MaxHealth(void) const
109 void MonsterGO::WeaponName(const string
&value
)
111 assert(!value
.empty());
115 string
MonsterGO::WeaponName(void) const
120 void MonsterGO::DeathCry(const string
&value
)
122 assert(!value
.empty());
126 string
MonsterGO::DeathCry(void) const
131 bool MonsterGO::operator==(const MonsterGO
&right
) const
133 return mId
== right
.mId
&& mLevel
== right
.mLevel
&& mHealth
== right
.mHealth
&&
134 mDefense
== right
.mDefense
&& mDeathCry
== right
.mDeathCry
&&
135 mGold
== right
.mGold
&& mHealth
== right
.mHealth
&&
136 mMaxHealth
== right
.mMaxHealth
&& mName
== right
.mName
&&
137 mStrength
== right
.mStrength
&& mWeaponName
== right
.mWeaponName
;
140 bool MonsterGO::operator!=(const MonsterGO
&right
) const
142 return (!(*this == right
));
145 ObjectTypes::ObjectType
MonsterGO::ObjectType(void) const
147 return ObjectTypes::Monster
;