]> jfr.im git - irc/gameservirc.git/blob - gameserv-2.0/libgameservgldl/include/GameServ/GameLayer/GameObjects/MonsterGO.h
Changed the ItemGO class to be abstract so you cannot define a simple ItemGO object...
[irc/gameservirc.git] / gameserv-2.0 / libgameservgldl / include / GameServ / GameLayer / GameObjects / MonsterGO.h
1 #ifndef __GS__MONSTER_H__
2 #define __GS__MONSTER_H__
3 #include <GameServ/GameLayer/GameObjects/GameObject.h>
4 using GameServ::GameLayer::GameObjects::GameObject;
5
6 #include <string>
7 using std::string;
8
9 namespace GameServ { namespace GameLayer { namespace GameObjects
10 {
11 class MonsterGO : public GameObject
12 {
13 public:
14
15 MonsterGO();
16 MonsterGO(const string &Id);
17
18 virtual ~MonsterGO();
19
20 //! Property get - Name
21 string Name(void) const;
22 //! Property set - Name
23 void Name(const string &value);
24
25 //! Property get - Gold
26 unsigned long int Gold(void) const;
27 //! Property set - Gold
28 void Gold(const unsigned long int &value);
29
30 //! Property get - Health
31 int Health(void) const;
32 //! Property set - Health
33 void Health(const int &value);
34
35 //! Property get - Max Health
36 int MaxHealth(void) const;
37 //! Property set - Max Health
38 void MaxHealth(const int &value);
39
40 //! Property get - Strength
41 int Strength(void) const;
42 //! Property set - Strength
43 void Strength(const int &value);
44
45 //! Property get - Defense
46 int Defense(void) const;
47 //! Property set - Defense
48 void Defense(const int &value);
49
50 //! Property get - Weapon Name
51 string WeaponName(void) const;
52
53 //! Property set - Weapon Name
54 void WeaponName(const string &value);
55
56 //! Property get - Death Cry
57 string DeathCry(void) const;
58
59 //! Property set - Death Cry
60 void DeathCry(const string &value);
61
62 bool operator==(const MonsterGO &right) const;
63 bool operator!=(const MonsterGO &right) const;
64
65 virtual MonsterGO *Clone(void) const;
66
67 virtual ObjectTypes::ObjectType ObjectType(void) const;
68
69 private:
70 string mName;
71 unsigned long int mGold;
72 int mHealth;
73 int mMaxHealth;
74 int mStrength;
75 int mDefense;
76 string mWeaponName;
77 string mDeathCry;
78 };
79 }}} // GameServ::GameLayer::GameObjects
80 #endif