]> jfr.im git - irc/gameservirc.git/blob - gameserv-2.0/libgameservgldl/include/GameServ/GameLayer/GameObjects/MonsterGO.h
I implemented a mock forest driver and found a problem in using the singleton design...
[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 - Level
26 string LevelId(void) const;
27 //! Property set - Level
28 void LevelId(const string &value);
29
30 //! Property get - Gold
31 unsigned long int Gold(void) const;
32 //! Property set - Gold
33 void Gold(const unsigned long int &value);
34
35 //! Property get - Experience
36 unsigned long int Experience(void) const;
37 //! Property set - Experience
38 void Experience(const unsigned long int &value);
39
40 //! Property get - Health
41 unsigned int Health(void) const;
42 //! Property set - Health
43 void Health(const unsigned int &value);
44
45 //! Property get - Max Health
46 unsigned int MaxHealth(void) const;
47 //! Property set - Max Health
48 void MaxHealth(const unsigned int &value);
49
50 //! Property get - Strength
51 unsigned int Strength(void) const;
52 //! Property set - Strength
53 void Strength(const unsigned int &value);
54
55 //! Property get - Defense
56 unsigned int Defense(void) const;
57 //! Property set - Defense
58 void Defense(const unsigned int &value);
59
60 //! Property get - Weapon Name
61 string WeaponName(void) const;
62
63 //! Property set - Weapon Name
64 void WeaponName(const string &value);
65
66 //! Property get - Death Cry
67 string DeathCry(void) const;
68
69 //! Property set - Death Cry
70 void DeathCry(const string &value);
71
72 //! Property get - Alive
73 bool Alive(void) const;
74 //! Property set - Alive
75 void Alive(const bool &value);
76
77 bool operator==(const MonsterGO &right) const;
78 bool operator!=(const MonsterGO &right) const;
79
80 virtual MonsterGO *Clone(void) const;
81
82 virtual ObjectTypes::ObjectType ObjectType(void) const;
83
84 private:
85 void Initialize(void);
86
87 string mName;
88 string mfkLevelId;
89 unsigned long int mGold;
90 unsigned long int mExperience;
91 unsigned int mHealth;
92 unsigned int mMaxHealth;
93 unsigned int mStrength;
94 unsigned int mDefense;
95 string mWeaponName;
96 string mDeathCry;
97 bool mAlive;
98 };
99 }}} // GameServ::GameLayer::GameObjects
100 #endif