aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/inventory.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mads/inventory.h')
-rw-r--r--engines/mads/inventory.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/engines/mads/inventory.h b/engines/mads/inventory.h
index 1ff38abb60..245d439188 100644
--- a/engines/mads/inventory.h
+++ b/engines/mads/inventory.h
@@ -53,6 +53,18 @@ public:
class InventoryObjects: public Common::Array<InventoryObject> {
private:
MADSEngine *_vm;
+
+ /**
+ * Removes the specified object from the player's inventory
+ */
+ void addToInventory(int objectId);
+
+ /**
+ * Removes the specified object to the player's inventory
+ * @param objectId Object to remove
+ * @param newScene Specifies the new scene to set the item to
+ */
+ void removeFromInventory(int objectId, int newScene);
public:
Common::Array<int> _inventoryList;
@@ -79,9 +91,9 @@ public:
void setData(int objIndex, int id, const byte *p);
/**
- * Sets the room number
+ * Sets an item's scene number
*/
- void setRoom(int objectId, int roomNumber);
+ void setRoom(int objectId, int sceneNumber);
/**
* Returns true if a given object is in the player's current scene