diff options
author | whitertandrek | 2018-03-17 20:05:09 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2018-06-28 23:51:32 +0200 |
commit | 4ff13d64ba3812a0847ef9f0634581ba0715e075 (patch) | |
tree | cc663a1a6ba1f9c0c0ebda2d50970752db0dc3a8 /engines/pink/objects/inventory.h | |
parent | 5d1c4af5f6b1f197eb4c3af7dbc05b591047406d (diff) | |
download | scummvm-rg350-4ff13d64ba3812a0847ef9f0634581ba0715e075.tar.gz scummvm-rg350-4ff13d64ba3812a0847ef9f0634581ba0715e075.tar.bz2 scummvm-rg350-4ff13d64ba3812a0847ef9f0634581ba0715e075.zip |
PINK: Added InventoryItem class
Diffstat (limited to 'engines/pink/objects/inventory.h')
-rw-r--r-- | engines/pink/objects/inventory.h | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/engines/pink/objects/inventory.h b/engines/pink/objects/inventory.h index 8827b4a4bd..f693811a97 100644 --- a/engines/pink/objects/inventory.h +++ b/engines/pink/objects/inventory.h @@ -23,17 +23,31 @@ #ifndef PINK_INVENTORY_H #define PINK_INVENTORY_H -#include "object.h" +#include "named_object.h" namespace Pink { - class InventoryMgr : public Object{ - public: - private: - // array of inv items - // other fields. haven't RE them yet - }; +class InventoryItem : public NamedObject { +public: + virtual void deserialize(Archive &archive); + +private: + Common::String _initialOwner; + Common::String _currentOwner; +}; + +class InventoryMgr : public Object { +public: + virtual ~InventoryMgr(); + + virtual void deserialize(Archive &archive); + + +private: + Common::Array<InventoryItem*> _invItems; + // other fields. haven't RE them yet +}; } // End of namespace Pink |