]>
Commit | Line | Data |
---|---|---|
4534c364 | 1 | #ifndef __GS__PLAYER_H__\r |
2 | #define __GS__PLAYER_H__\r | |
3 | #include <GameServ/GameLayer/GameObjects/GameObject.h>\r | |
4 | using GameServ::GameLayer::GameObjects::GameObject;\r | |
5 | \r | |
551b6a1d | 6 | #include <GameServ/GameLayer/GameObjects/ItemGO.h>\r |
7 | using GameServ::GameLayer::GameObjects::ItemGO;\r | |
8 | \r | |
9 | #include <GameServ/GameLayer/GameObjects/ArmorGO.h>\r | |
551b6a1d | 10 | using GameServ::GameLayer::GameObjects::ArmorGO;\r |
07e8dab5 | 11 | #include <GameServ/GameLayer/GameObjects/WeaponGO.h>\r |
551b6a1d | 12 | using GameServ::GameLayer::GameObjects::WeaponGO;\r |
13 | \r | |
4534c364 | 14 | #include <boost/shared_ptr.hpp>\r |
15 | using boost::shared_ptr;\r | |
16 | \r | |
17 | #include <string>\r | |
18 | using std::string;\r | |
551b6a1d | 19 | #include <vector>\r |
20 | using std::vector;\r | |
4534c364 | 21 | \r |
22 | namespace GameServ { namespace GameLayer { namespace GameObjects\r | |
23 | {\r | |
24 | class PlayerGO : public GameObject\r | |
25 | {\r | |
26 | public:\r | |
551b6a1d | 27 | PlayerGO();\r |
28 | ~PlayerGO();\r | |
4534c364 | 29 | \r |
30 | //! Property get - Name\r | |
31 | string Name(void) const;\r | |
32 | //! Property set - Name\r | |
33 | void Name(const string &value);\r | |
34 | \r | |
35 | //! Property get - Level\r | |
36 | int Level(void) const;\r | |
37 | //! Property set - Level\r | |
38 | void Level(const int &value);\r | |
39 | \r | |
40 | //! Property get - Experience\r | |
41 | unsigned long int Experience(void) const;\r | |
42 | //! Property set - Experience\r | |
43 | void Experience(const unsigned long int &value);\r | |
44 | \r | |
45 | //! Property get - Gold\r | |
46 | unsigned long int Gold(void) const;\r | |
47 | //! Property set - Gold\r | |
48 | void Gold(const unsigned long int &gold);\r | |
49 | \r | |
50 | //! Property get - Health\r | |
51 | int Health(void) const;\r | |
52 | //! Property set - Health\r | |
53 | void Health(const int &value);\r | |
54 | \r | |
55 | //! Property get - Max Health\r | |
56 | int MaxHealth(void) const;\r | |
57 | //! Property set - Max Health\r | |
58 | void MaxHealth(const int &value);\r | |
59 | \r | |
60 | //! Property get - Strength\r | |
61 | int Strength(void) const;\r | |
62 | //! Property set - Strength\r | |
63 | void Strength(const int &value);\r | |
64 | \r | |
65 | //! Property get - Defense\r | |
66 | int Defense(void) const;\r | |
67 | //! Property set - Defense\r | |
68 | void Defense(const int &value);\r | |
69 | \r | |
70 | //! Property get - Forest Fights\r | |
71 | int ForestFights(void) const;\r | |
72 | //! Propety set - Forest Fights\r | |
73 | void ForestFights(const int &value);\r | |
74 | \r | |
75 | //! Property get - Player Fights\r | |
76 | int PlayerFights(void) const;\r | |
77 | //! Property set - Player Fights\r | |
78 | void PlayerFights(const int &value);\r | |
79 | \r | |
80 | //! Property get - Weapon\r | |
81 | shared_ptr<WeaponGO> Weapon(void) const;\r | |
82 | //! Property set - Weapon\r | |
551b6a1d | 83 | void Weapon(shared_ptr<WeaponGO> spWeapon);\r |
84 | \r | |
85 | //! Property get - Armor\r | |
86 | shared_ptr<ArmorGO> Armor(void) const;\r | |
87 | //! Property set - Armor\r | |
88 | void Armor(shared_ptr<ArmorGO> spArmor);\r | |
4534c364 | 89 | \r |
551b6a1d | 90 | //! Use an Item\r |
91 | void Use(shared_ptr<ItemGO> spItem);\r | |
4534c364 | 92 | \r |
93 | private:\r | |
94 | string mName;\r | |
95 | int mLevel;\r | |
96 | unsigned long int mExperience;\r | |
97 | unsigned long int mGold;\r | |
98 | int mHealth;\r | |
99 | int mMaxHealth;\r | |
100 | int mStrength;\r | |
101 | int mDefense;\r | |
102 | int mForestFights;\r | |
103 | int mPlayerFights;\r | |
104 | string mPassword;\r | |
105 | shared_ptr<WeaponGO> mWeapon;\r | |
106 | shared_ptr<ArmorGO> mArmor;\r | |
551b6a1d | 107 | vector< shared_ptr<ItemGO> > mInventory;\r |
4534c364 | 108 | \r |
109 | };\r | |
110 | }}} // GameServ::GameLayer::GameObjects\r | |
111 | #endif |