]> jfr.im git - irc/gameservirc.git/blob - gameserv-2.0/libgameservgldl/include/GameServ/GameLayer/GameObjects/PlayerGO.h
e266ce34574b8d52734d401010e3f0c8cf087ba6
[irc/gameservirc.git] / gameserv-2.0 / libgameservgldl / include / GameServ / GameLayer / GameObjects / PlayerGO.h
1 #ifndef __GS__PLAYER_H__
2 #define __GS__PLAYER_H__
3 #include <GameServ/GameLayer/GameObjects/GameObject.h>
4 using GameServ::GameLayer::GameObjects::GameObject;
5
6 #include <boost/shared_ptr.hpp>
7 using boost::shared_ptr;
8
9 #include <string>
10 using std::string;
11
12 namespace GameServ { namespace GameLayer { namespace GameObjects
13 {
14 class PlayerGO : public GameObject
15 {
16 public:
17 Player();
18 ~Player();
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 int Level(void) const;
27 //! Property set - Level
28 void Level(const int &value);
29
30 //! Property get - Experience
31 unsigned long int Experience(void) const;
32 //! Property set - Experience
33 void Experience(const unsigned long int &value);
34
35 //! Property get - Gold
36 unsigned long int Gold(void) const;
37 //! Property set - Gold
38 void Gold(const unsigned long int &gold);
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 - Forest Fights
61 int ForestFights(void) const;
62 //! Propety set - Forest Fights
63 void ForestFights(const int &value);
64
65 //! Property get - Player Fights
66 int PlayerFights(void) const;
67 //! Property set - Player Fights
68 void PlayerFights(const int &value);
69
70 //! Property get - Weapon
71 shared_ptr<WeaponGO> Weapon(void) const;
72 //! Property set - Weapon
73 void Weapon(const shared_ptr<WeaponGO> spWeapon);
74
75
76 private:
77 string mName;
78 int mLevel;
79 unsigned long int mExperience;
80 unsigned long int mGold;
81 int mHealth;
82 int mMaxHealth;
83 int mStrength;
84 int mDefense;
85 int mForestFights;
86 int mPlayerFights;
87 string mPassword;
88 shared_ptr<WeaponGO> mWeapon;
89 shared_ptr<ArmorGO> mArmor;
90
91 };
92 }}} // GameServ::GameLayer::GameObjects
93 #endif