]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv-2.0/libgameservgldl/include/GameServ/GameLayer/GameObjects/PlayerGO.h
Consolidated all the individual level files into a single levels.dat file.
[irc/gameservirc.git] / gameserv-2.0 / libgameservgldl / include / GameServ / GameLayer / GameObjects / PlayerGO.h
index 47c83018625345b60a3f8a3c72c55e30f9ac3618..431366992e2f58b9a5163ec3261dbefa75371472 100644 (file)
@@ -11,6 +11,9 @@ using GameServ::GameLayer::GameObjects::ArmorGO;
 #include <GameServ/GameLayer/GameObjects/WeaponGO.h>\r
 using GameServ::GameLayer::GameObjects::WeaponGO;\r
 \r
+#include <GameServ/Types.h>\r
+using GameServ::Types::ObjectTypes;\r
+\r
 #include <boost/smart_ptr/shared_ptr.hpp>\r
 using boost::shared_ptr;\r
 \r
@@ -19,7 +22,6 @@ using std::string;
 #include <vector>\r
 using std::vector;\r
 \r
-\r
 #include <boost/date_time/posix_time/posix_time.hpp>\r
 using boost::posix_time::ptime;\r
 \r
@@ -99,11 +101,6 @@ 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
@@ -126,22 +123,13 @@ namespace GameServ { namespace GameLayer { namespace GameObjects
                //! Property set - Alive\r
                void Alive(const bool &value);\r
 \r
-               //! Property set - Inventory\r
-               void Inventory(const vector<string> &value);\r
-\r
-               //! Property get - Inventory\r
-               vector<string> Inventory(void) const;\r
-\r
-               //! Add item to inventory\r
-               void AddItemToInventory(const string &fkItemId, const int &Number=1);\r
-               //! Remove item from inventory\r
-               void RemoveItemFromInventory(const string &fkItemId, const int &Number=1);\r
-\r
                bool operator==(const PlayerGO &right) const;\r
                bool operator!=(const PlayerGO &right) const;\r
 \r
                virtual PlayerGO *Clone(void) const;\r
 \r
+               virtual ObjectTypes::ObjectType ObjectType(void) const;\r
+\r
        private:\r
                string mName;\r
                int mLevel;\r
@@ -161,8 +149,6 @@ namespace GameServ { namespace GameLayer { namespace GameObjects
 \r
                bool mFoughtMaster;\r
                bool mAlive;\r
-\r
-               vector<string> mfkItemIds;\r
        };\r
 }}} // GameServ::GameLayer::GameObjects\r
 #endif
\ No newline at end of file