]>
jfr.im git - irc/gameservirc.git/blob - gameserv-2.0/libgameservgldl/include/GameServ/GameLayer/GameObjects/PlayerGO.h
e266ce34574b8d52734d401010e3f0c8cf087ba6
1 #ifndef __GS__PLAYER_H__
2 #define __GS__PLAYER_H__
3 #include <GameServ/GameLayer/GameObjects/GameObject.h>
4 using GameServ::GameLayer::GameObjects::GameObject
;
6 #include <boost/shared_ptr.hpp>
7 using boost::shared_ptr
;
12 namespace GameServ
{ namespace GameLayer
{ namespace GameObjects
14 class PlayerGO
: public GameObject
20 //! Property get - Name
21 string
Name(void) const;
22 //! Property set - Name
23 void Name(const string
&value
);
25 //! Property get - Level
26 int Level(void) const;
27 //! Property set - Level
28 void Level(const int &value
);
30 //! Property get - Experience
31 unsigned long int Experience(void) const;
32 //! Property set - Experience
33 void Experience(const unsigned long int &value
);
35 //! Property get - Gold
36 unsigned long int Gold(void) const;
37 //! Property set - Gold
38 void Gold(const unsigned long int &gold
);
40 //! Property get - Health
41 int Health(void) const;
42 //! Property set - Health
43 void Health(const int &value
);
45 //! Property get - Max Health
46 int MaxHealth(void) const;
47 //! Property set - Max Health
48 void MaxHealth(const int &value
);
50 //! Property get - Strength
51 int Strength(void) const;
52 //! Property set - Strength
53 void Strength(const int &value
);
55 //! Property get - Defense
56 int Defense(void) const;
57 //! Property set - Defense
58 void Defense(const int &value
);
60 //! Property get - Forest Fights
61 int ForestFights(void) const;
62 //! Propety set - Forest Fights
63 void ForestFights(const int &value
);
65 //! Property get - Player Fights
66 int PlayerFights(void) const;
67 //! Property set - Player Fights
68 void PlayerFights(const int &value
);
70 //! Property get - Weapon
71 shared_ptr
<WeaponGO
> Weapon(void) const;
72 //! Property set - Weapon
73 void Weapon(const shared_ptr
<WeaponGO
> spWeapon
);
79 unsigned long int mExperience
;
80 unsigned long int mGold
;
88 shared_ptr
<WeaponGO
> mWeapon
;
89 shared_ptr
<ArmorGO
> mArmor
;
92 }}} // GameServ::GameLayer::GameObjects