]>
jfr.im git - irc/gameservirc.git/blob - gameserv-2.0/libgameservgldl/src/GameLayer/GameObjects/MonsterGO.cpp
b9ca812fe6a7307e1f6592ca51c7abb66ba3ed61
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::LevelId(const string
&value
)
54 string
MonsterGO::LevelId(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::Experience(const unsigned long int &value
)
94 unsigned long int MonsterGO::Experience(void) const
99 void MonsterGO::Health(const unsigned int &value
)
104 unsigned int MonsterGO::Health(void) const
109 void MonsterGO::MaxHealth(const unsigned int &value
)
114 unsigned int MonsterGO::MaxHealth(void) const
119 void MonsterGO::WeaponName(const string
&value
)
121 assert(!value
.empty());
125 string
MonsterGO::WeaponName(void) const
130 void MonsterGO::DeathCry(const string
&value
)
132 assert(!value
.empty());
136 string
MonsterGO::DeathCry(void) const
141 bool MonsterGO::operator==(const MonsterGO
&right
) const
143 return mId
== right
.mId
&& mfkLevelId
== right
.mfkLevelId
&& mHealth
== right
.mHealth
&&
144 mDefense
== right
.mDefense
&& mDeathCry
== right
.mDeathCry
&&
145 mGold
== right
.mGold
&& mHealth
== right
.mHealth
&&
146 mMaxHealth
== right
.mMaxHealth
&& mName
== right
.mName
&&
147 mStrength
== right
.mStrength
&& mWeaponName
== right
.mWeaponName
;
150 bool MonsterGO::operator!=(const MonsterGO
&right
) const
152 return (!(*this == right
));
155 ObjectTypes::ObjectType
MonsterGO::ObjectType(void) const
157 return ObjectTypes::Monster
;