]> jfr.im git - irc/gameservirc.git/blob - gameserv-2.0/libgameservgldl/include/GameServ/GameLayer/GameObjects/MasterGO.h
Consolidated all the individual level files into a single levels.dat file.
[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 - Level
21 void Level(const unsigned int &value);
22 //! Property get - Level
23 unsigned int Level(void) const;
24
25 //! Property get - Name
26 string Name(void) const;
27 //! Property set - Name
28 void Name(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 int Health(void) const;
42 //! Property set - Health
43 void Health(const int &value);
44
45 //! Property get - Max Health
46 int MaxHealth(void) const;
47 //! Property set - Max Health
48 void MaxHealth(const int &value);
49
50 //! Property get - Strength
51 int Strength(void) const;
52 //! Property set - Strength
53 void Strength(const int &value);
54
55 //! Property get - Defense
56 int Defense(void) const;
57 //! Property set - Defense
58 void Defense(const 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 PartingWords(void) const;
68
69 //! Property set - Death Cry
70 void PartingWords(const string &value);
71
72 bool operator==(const MasterGO &right) const;
73 bool operator!=(const MasterGO &right) const;
74
75 virtual MasterGO *Clone(void) const;
76
77 virtual ObjectTypes::ObjectType ObjectType(void) const;
78
79 private:
80 unsigned int mLevel;
81 string mName;
82 unsigned long int mGold;
83 unsigned long int mExperience;
84 int mHealth;
85 int mMaxHealth;
86 int mStrength;
87 int mDefense;
88 string mWeaponName;
89 string mPartingWords;
90 };
91 }}} // GameServ::GameLayer::GameObjects
92 #endif