aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_inventory_glyphs.h
diff options
context:
space:
mode:
authorPaul Gilbert2017-01-15 16:21:46 -0500
committerPaul Gilbert2017-01-15 16:21:46 -0500
commit988e47d2d0ec0b803dbd20b7018b792952ac9b3a (patch)
tree25e0f232f1a7b6e4bcd061525d7e1ccda1f30991 /engines/titanic/pet_control/pet_inventory_glyphs.h
parent85a6c1d3fe4ca4297867bfc1ac51ca90a71f0753 (diff)
downloadscummvm-rg350-988e47d2d0ec0b803dbd20b7018b792952ac9b3a.tar.gz
scummvm-rg350-988e47d2d0ec0b803dbd20b7018b792952ac9b3a.tar.bz2
scummvm-rg350-988e47d2d0ec0b803dbd20b7018b792952ac9b3a.zip
TITANIC: Show correct inventory glyphs & tooltip for multi-state items
Diffstat (limited to 'engines/titanic/pet_control/pet_inventory_glyphs.h')
-rw-r--r--engines/titanic/pet_control/pet_inventory_glyphs.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/titanic/pet_control/pet_inventory_glyphs.h b/engines/titanic/pet_control/pet_inventory_glyphs.h
index e843cf53f9..cf1cfb392b 100644
--- a/engines/titanic/pet_control/pet_inventory_glyphs.h
+++ b/engines/titanic/pet_control/pet_inventory_glyphs.h
@@ -36,7 +36,12 @@ private:
*/
int populateItem(CGameObject *item, bool isLoading);
- int subMode(CGameObject *item, bool isLoading);
+ /**
+ * For items which can have multiple different states, such as the
+ * beer glass or Maitre D arms, returns the correct item index to use
+ * for getting the inventory item glyph and description
+ */
+ int getItemIndex(CGameObject *item, bool isLoading);
/**
* Start any movie for the background