diff options
author | strangerke | 2011-02-15 10:15:21 +0100 |
---|---|---|
committer | strangerke | 2011-02-15 10:15:21 +0100 |
commit | 402ac930fe440af42354bd0c635abb07a69cfc4a (patch) | |
tree | fd506786449c610648d9f1510aa99858c5795776 /engines/hugo/inventory.h | |
parent | f1030515d0875c2d306f0e97517f8dfac1375f6c (diff) | |
download | scummvm-rg350-402ac930fe440af42354bd0c635abb07a69cfc4a.tar.gz scummvm-rg350-402ac930fe440af42354bd0c635abb07a69cfc4a.tar.bz2 scummvm-rg350-402ac930fe440af42354bd0c635abb07a69cfc4a.zip |
HUGO: more refactoring and encapsulation
Diffstat (limited to 'engines/hugo/inventory.h')
-rw-r--r-- | engines/hugo/inventory.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/hugo/inventory.h b/engines/hugo/inventory.h index deb22cf9aa..8d60904c6f 100644 --- a/engines/hugo/inventory.h +++ b/engines/hugo/inventory.h @@ -45,11 +45,15 @@ public: void setInventoryObjId(int16 objId) { _inventoryObjId = objId; } void setInventoryState(istate_t state) { _inventoryState = state; } + void freeInvent() { free(_invent); } + int16 getInventoryObjId() const { return _inventoryObjId; } istate_t getInventoryState() const { return _inventoryState; } + int16 findIconId(int16 objId); + void loadInvent(Common::ReadStream &in); int16 processInventory(const invact_t action, ...); - void runInventory(); + void runInventory(); private: HugoEngine *_vm; @@ -57,9 +61,11 @@ private: static const int kStepDy = 8; // Pixels per step movement int16 _firstIconId; // Index of first icon to display + int16 *_invent; istate_t _inventoryState; // Inventory icon bar state int16 _inventoryHeight; // Inventory icon bar height int16 _inventoryObjId; // Inventory object selected, or -1 + byte _maxInvent; void constructInventory(const int16 imageTotNumb, int displayNumb, const bool scrollFl, int16 firstObjId); }; |