]> jfr.im git - irc/gameservirc.git/blob - gameserv-2.0/libgameservgldl/include/GameServ/GameLayer/GameObjects/MasterGO.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 / MasterGO.h
1 #ifndef __GS__MASTER_H__
2 #define __GS__MASTER_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 MasterGO : public GameObject
12 {
13 public:
14
15 MasterGO();
16 MasterGO(const string &Id);
17
18 virtual ~MasterGO();
19
20 //! Property set - Alive
21 void Alive(const bool &value);
22 //! Property get - Alive
23 bool Alive(void) const;
24
25 //! Property set - Level
26 void Level(const unsigned int &value);
27 //! Property get - Level
28 unsigned int Level(void) const;
29
30 //! Property get - Name
31 string Name(void) const;
32 //! Property set - Name
33 void Name(const string &value);
34
35 //! Property get - Gold
36 unsigned long int Gold(void) const;
37 //! Property set - Gold
38 void Gold(const unsigned long int &value);
39
40 //! Property get - Experience
41 unsigned long int Experience(void) const;
42 //! Property set - Experience
43 void Experience(const unsigned long int &value);
44
45 //! Property get - Health
46 int Health(void) const;
47 //! Property set - Health
48 void Health(const int &value);
49
50 //! Property get - Max Health
51 int MaxHealth(void) const;
52 //! Property set - Max Health
53 void MaxHealth(const int &value);
54
55 //! Property get - Strength
56 int Strength(void) const;
57 //! Property set - Strength
58 void Strength(const int &value);
59
60 //! Property get - Defense
61 int Defense(void) const;
62 //! Property set - Defense
63 void Defense(const int &value);
64
65 //! Property get - Weapon Name
66 string WeaponName(void) const;
67
68 //! Property set - Weapon Name
69 void WeaponName(const string &value);
70
71 //! Property get - Death Cry
72 string PartingWords(void) const;
73
74 //! Property set - Death Cry
75 void PartingWords(const string &value);
76
77 bool operator==(const MasterGO &right) const;
78 bool operator!=(const MasterGO &right) const;
79
80 virtual MasterGO *Clone(void) const;
81
82 virtual ObjectTypes::ObjectType ObjectType(void) const;
83
84 private:
85 bool mAlive;
86 unsigned int mLevel;
87 string mName;
88 unsigned long int mGold;
89 unsigned long int mExperience;
90 int mHealth;
91 int mMaxHealth;
92 int mStrength;
93 int mDefense;
94 string mWeaponName;
95 string mPartingWords;
96 };
97 }}} // GameServ::GameLayer::GameObjects
98 #endif