aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_inventory.h
diff options
context:
space:
mode:
authorPaul Gilbert2016-04-18 11:36:39 -0400
committerPaul Gilbert2016-07-10 16:11:29 -0400
commit47024115941c125452bb787758091686c91fc4fb (patch)
tree338d53d05c22902cdbf5ed9249e119e261f96d21 /engines/titanic/pet_control/pet_inventory.h
parent5316951ba6e4403a388e49a1e23fc7858d1c3980 (diff)
downloadscummvm-rg350-47024115941c125452bb787758091686c91fc4fb.tar.gz
scummvm-rg350-47024115941c125452bb787758091686c91fc4fb.tar.bz2
scummvm-rg350-47024115941c125452bb787758091686c91fc4fb.zip
TITANIC: Further cleanup of pet element setups
Diffstat (limited to 'engines/titanic/pet_control/pet_inventory.h')
-rw-r--r--engines/titanic/pet_control/pet_inventory.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/titanic/pet_control/pet_inventory.h b/engines/titanic/pet_control/pet_inventory.h
index e192bf8a92..fca9dede14 100644
--- a/engines/titanic/pet_control/pet_inventory.h
+++ b/engines/titanic/pet_control/pet_inventory.h
@@ -96,6 +96,10 @@ public:
*/
virtual bool isValid(CPetControl *petControl);
+ virtual CGameObject *getBackground(int index) const {
+ return (index >= 0 && index < 46) ? _itemBackgrounds[index] : nullptr;
+ }
+
/**
*
*/
@@ -115,6 +119,8 @@ public:
* Called when the inventory can't be shown after adding an item
*/
void highlightItem(CGameObject *item);
+
+ CGameObject *getImage(int index);
};
} // End of namespace Titanic