]>
Commit | Line | Data |
---|---|---|
3d5a42ee | 1 | #ifndef __GS__MONSTER_H__\r |
2 | #define __GS__MONSTER_H__\r | |
3 | #include <GameServ/GameLayer/GameObjects/GameObject.h>\r | |
4 | using GameServ::GameLayer::GameObjects::GameObject;\r | |
5 | \r | |
6 | #include <string>\r | |
7 | using std::string;\r | |
8 | \r | |
9 | namespace GameServ { namespace GameLayer { namespace GameObjects\r | |
10 | {\r | |
11 | class MonsterGO : public GameObject\r | |
12 | {\r | |
13 | public:\r | |
14 | \r | |
15 | MonsterGO();\r | |
16 | MonsterGO(const string &Id);\r | |
17 | \r | |
18 | virtual ~MonsterGO();\r | |
19 | \r | |
20 | //! Property get - Name\r | |
21 | string Name(void) const;\r | |
22 | //! Property set - Name\r | |
23 | void Name(const string &value);\r | |
24 | \r | |
04a66a14 | 25 | //! Property get - Level\r |
fd2ef47d | 26 | string LevelId(void) const;\r |
04a66a14 | 27 | //! Property set - Level\r |
fd2ef47d | 28 | void LevelId(const string &value);\r |
04a66a14 | 29 | \r |
3d5a42ee | 30 | //! Property get - Gold\r |
31 | unsigned long int Gold(void) const;\r | |
32 | //! Property set - Gold\r | |
33 | void Gold(const unsigned long int &value);\r | |
34 | \r | |
fd2ef47d | 35 | //! Property get - Experience\r |
36 | unsigned long int Experience(void) const;\r | |
37 | //! Property set - Experience\r | |
38 | void Experience(const unsigned long int &value);\r | |
39 | \r | |
3d5a42ee | 40 | //! Property get - Health\r |
04a66a14 | 41 | unsigned int Health(void) const;\r |
3d5a42ee | 42 | //! Property set - Health\r |
04a66a14 | 43 | void Health(const unsigned int &value);\r |
3d5a42ee | 44 | \r |
45 | //! Property get - Max Health\r | |
04a66a14 | 46 | unsigned int MaxHealth(void) const;\r |
3d5a42ee | 47 | //! Property set - Max Health\r |
04a66a14 | 48 | void MaxHealth(const unsigned int &value);\r |
3d5a42ee | 49 | \r |
50 | //! Property get - Strength\r | |
04a66a14 | 51 | unsigned int Strength(void) const;\r |
3d5a42ee | 52 | //! Property set - Strength\r |
04a66a14 | 53 | void Strength(const unsigned int &value);\r |
3d5a42ee | 54 | \r |
55 | //! Property get - Defense\r | |
04a66a14 | 56 | unsigned int Defense(void) const;\r |
3d5a42ee | 57 | //! Property set - Defense\r |
04a66a14 | 58 | void Defense(const unsigned int &value);\r |
3d5a42ee | 59 | \r |
60 | //! Property get - Weapon Name\r | |
61 | string WeaponName(void) const;\r | |
62 | \r | |
63 | //! Property set - Weapon Name\r | |
64 | void WeaponName(const string &value);\r | |
65 | \r | |
66 | //! Property get - Death Cry\r | |
67 | string DeathCry(void) const;\r | |
68 | \r | |
69 | //! Property set - Death Cry\r | |
70 | void DeathCry(const string &value);\r | |
71 | \r | |
fadef98f | 72 | //! Property get - Alive\r |
73 | bool Alive(void) const;\r | |
74 | //! Property set - Alive\r | |
75 | void Alive(const bool &value);\r | |
76 | \r | |
3d5a42ee | 77 | bool operator==(const MonsterGO &right) const;\r |
78 | bool operator!=(const MonsterGO &right) const;\r | |
79 | \r | |
80 | virtual MonsterGO *Clone(void) const;\r | |
81 | \r | |
1134c368 | 82 | virtual ObjectTypes::ObjectType ObjectType(void) const;\r |
83 | \r | |
3d5a42ee | 84 | private:\r |
04a66a14 | 85 | void Initialize(void);\r |
86 | \r | |
3d5a42ee | 87 | string mName;\r |
fd2ef47d | 88 | string mfkLevelId;\r |
3d5a42ee | 89 | unsigned long int mGold;\r |
fd2ef47d | 90 | unsigned long int mExperience;\r |
04a66a14 | 91 | unsigned int mHealth;\r |
92 | unsigned int mMaxHealth;\r | |
93 | unsigned int mStrength;\r | |
94 | unsigned int mDefense;\r | |
3d5a42ee | 95 | string mWeaponName;\r |
96 | string mDeathCry;\r | |
fadef98f | 97 | bool mAlive;\r |
3d5a42ee | 98 | };\r |
99 | }}} // GameServ::GameLayer::GameObjects\r | |
100 | #endif |