aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/inventory.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/fullpipe/inventory.h')
-rw-r--r--engines/fullpipe/inventory.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/engines/fullpipe/inventory.h b/engines/fullpipe/inventory.h
index 8d72ffc8be..f84d27dde5 100644
--- a/engines/fullpipe/inventory.h
+++ b/engines/fullpipe/inventory.h
@@ -76,8 +76,8 @@ struct InventoryIcon {
int x2;
int y2;
int16 inventoryItemId;
- int isSelected;
- int isMouseHover;
+ bool isSelected;
+ bool isMouseHover;
};
typedef Common::Array<InventoryIcon *> InventoryIcons;
@@ -101,8 +101,10 @@ class CInventory2 : public CInventory {
void removeItem(int itemId, int count);
void removeItem2(Scene *sceneObj, int itemId, int x, int y, int priority);
+ int getInventoryItemIndexById(int itemId);
int getInventoryPoolItemFieldCById(int itemId);
int getCountItemsWithId(int itemId);
+ int getItemFlags(int itemId);
void rebuildItemRects();
@@ -116,8 +118,9 @@ class CInventory2 : public CInventory {
void slideIn();
void slideOut();
- int handleLeftClick(ExCommand *cmd);
- int unselectItem(bool flag);
+ bool handleLeftClick(ExCommand *cmd);
+ int selectItem(int itemId);
+ bool unselectItem(bool flag);
void draw();
};