diff options
author | Paul Gilbert | 2014-11-05 22:32:12 -0500 |
---|---|---|
committer | Paul Gilbert | 2014-12-12 22:23:04 -0500 |
commit | 6ceda069c7042bc081845d3a52f99e21a58c43d8 (patch) | |
tree | d2e4da755a2900a2b0a420a1505bb02ae2f4466c /engines/access/inventory.h | |
parent | b8c95e653dab6a82926effe772b03eb6770e6083 (diff) | |
download | scummvm-rg350-6ceda069c7042bc081845d3a52f99e21a58c43d8.tar.gz scummvm-rg350-6ceda069c7042bc081845d3a52f99e21a58c43d8.tar.bz2 scummvm-rg350-6ceda069c7042bc081845d3a52f99e21a58c43d8.zip |
ACCESS: Beginnings of inventory dragging for combining items
Diffstat (limited to 'engines/access/inventory.h')
-rw-r--r-- | engines/access/inventory.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/engines/access/inventory.h b/engines/access/inventory.h index 0ff9020250..eff142c9c9 100644 --- a/engines/access/inventory.h +++ b/engines/access/inventory.h @@ -32,6 +32,21 @@ namespace Access { +class InventoryEntry { +public: + Common::String _name; + int _value; + + int _otherItem1; + int _newItem1; + int _otherItem2; + int _newItem2; + + void load(const Common::String &name, const int *data); + + int checkItem(int itemId); +}; + class InventoryManager : public Manager { struct SavedFields { int _vWindowHeight; @@ -58,7 +73,6 @@ private: ASurface _savedScreen; SavedFields _fields; bool _iconDisplayFlag; - Common::StringArray _names; Common::Array<int> _tempLPtr; Common::StringArray _tempLOff; int _boxNum; @@ -89,7 +103,7 @@ private: void combineItems(); public: - Common::Array<int> _inv; + Common::Array<InventoryEntry> _inv; int _startInvItem; int _startInvBox; bool _invChangeFlag; |