18
18
* along with this program; if not, write to the Free Software
19
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21
* $URL: https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/tags/release-1-2-1/engines/hugo/inventory.h $
22
* $Id: inventory.h 52406 2010-08-27 09:48:53Z strangerke $
34
34
#define HUGO_INVENTORY_H
37
#define NUM_ARROWS 2 // Number of arrows (left/right)
38
#define LEFT_ARROW -2 // Cursor over Left arrow in inventory icon bar
39
#define RIGHT_ARROW -3 // Cursor over Right arrow in inventory icon bar
38
* Actions for Process_inventory()
40
enum invact_t {kInventoryActionInit, kInventoryActionLeft, kInventoryActionRight, kInventoryActionGet};
41
42
class InventoryHandler {
43
InventoryHandler(HugoEngine &vm);
45
int16 processInventory(invact_t action, ...);
44
InventoryHandler(HugoEngine *vm);
46
void setInventoryObjId(int16 objId);
47
void setInventoryState(istate_t state);
50
int16 getInventoryObjId() const;
51
istate_t getInventoryState() const;
53
int16 findIconId(int16 objId);
54
void loadInvent(Common::SeekableReadStream &in);
55
int16 processInventory(const invact_t action, ...);
51
void constructInventory(int16 imageTotNumb, int displayNumb, bool scrollFl, int16 firstObjId);
61
static const int kStepDy = 8; // Pixels per step movement
63
int16 _firstIconId; // Index of first icon to display
65
istate_t _inventoryState; // Inventory icon bar state
66
int16 _inventoryHeight; // Inventory icon bar height
67
int16 _inventoryObjId; // Inventory object selected, or -1
70
void constructInventory(const int16 imageTotNumb, int displayNumb, const bool scrollFl, int16 firstObjId);
54
73
} // End of namespace Hugo