]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv-2.0/libgameservgldl/include/GameServ/GameLayer/GameObjects/PlayerGO.h
Changed all modifiers to be ranges. A single number is now treated as a range of...
[irc/gameservirc.git] / gameserv-2.0 / libgameservgldl / include / GameServ / GameLayer / GameObjects / PlayerGO.h
index 2c168851ce0372e6f443e1d12a2452aa3bf5f03f..4f160cb9121251027096b79338dca39bf2ca30e7 100644 (file)
@@ -11,7 +11,7 @@ using GameServ::GameLayer::GameObjects::ArmorGO;
 #include <GameServ/GameLayer/GameObjects/WeaponGO.h>\r
 using GameServ::GameLayer::GameObjects::WeaponGO;\r
 \r
-#include <boost/shared_ptr.hpp>\r
+#include <boost/smart_ptr/shared_ptr.hpp>\r
 using boost::shared_ptr;\r
 \r
 #include <string>\r
@@ -19,11 +19,15 @@ using std::string;
 #include <vector>\r
 using std::vector;\r
 \r
+#include <boost/date_time/posix_time/posix_time.hpp>\r
+using boost::posix_time::ptime;\r
+\r
 namespace GameServ { namespace GameLayer { namespace GameObjects\r
 {\r
        class PlayerGO : public GameObject\r
        {\r
        public:\r
+\r
                PlayerGO();\r
                PlayerGO(const string &Id);\r
 \r
@@ -94,16 +98,39 @@ namespace GameServ { namespace GameLayer { namespace GameObjects
                //! Property set - Armor\r
                void Armor(shared_ptr<ArmorGO> spArmor);\r
 \r
-               //! Use an Item\r
-               void Use(shared_ptr<ItemGO> spItem);\r
-               //! Undo the effects of an item\r
-               void Undo(shared_ptr<ItemGO> spItem);\r
-\r
                //! Property set - Password\r
                void Password(const string &value);\r
                //! Property get - Password\r
                string Password(void) const;\r
 \r
+               //! Property set - LastLogin\r
+               void LastLogin(const ptime &value);\r
+               //! Property get - LastLogin\r
+               ptime LastLogin(void) const;\r
+\r
+               //! Property get - FoughtMaster\r
+               bool FoughtMaster(void) const;\r
+\r
+               //! Property set - Fought master\r
+               void FoughtMaster(const bool &value);\r
+\r
+               //! Property get - Alive\r
+               bool Alive(void) const;\r
+\r
+               //! Property set - Alive\r
+               void Alive(const bool &value);\r
+\r
+               //! Property set - Inventory\r
+               void Inventory(const vector< shared_ptr<ItemGO> > &items);\r
+\r
+               //! Property get - Inventory\r
+               vector< shared_ptr<ItemGO> > Inventory(void) const;\r
+\r
+               //! Add item to inventory\r
+               void AddItemToInventory(shared_ptr<ItemGO> spItem, const int &Number=1);\r
+               //! Remove item from inventory\r
+               void RemoveItemFromInventory(shared_ptr<ItemGO> spItem, const int &Number=1);\r
+\r
                bool operator==(const PlayerGO &right) const;\r
                bool operator!=(const PlayerGO &right) const;\r
 \r
@@ -124,8 +151,12 @@ namespace GameServ { namespace GameLayer { namespace GameObjects
                string mPassword;\r
                shared_ptr<WeaponGO> mWeapon;\r
                shared_ptr<ArmorGO> mArmor;\r
-               vector< shared_ptr<ItemGO> > mInventory;\r
+               ptime mLastLogin;\r
+\r
+               bool mFoughtMaster;\r
+               bool mAlive;\r
 \r
+               vector< shared_ptr<ItemGO> > mItems;\r
        };\r
 }}} // GameServ::GameLayer::GameObjects\r
 #endif
\ No newline at end of file