From 6f5f59af17290930ea75261c604471057e3b45e3 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 24 Jun 2016 22:39:01 -0400 Subject: TITANIC: Added various PET methods --- engines/titanic/pet_control/pet_inventory_glyphs.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'engines/titanic/pet_control/pet_inventory_glyphs.h') diff --git a/engines/titanic/pet_control/pet_inventory_glyphs.h b/engines/titanic/pet_control/pet_inventory_glyphs.h index 91b1e5ee50..17222a9076 100644 --- a/engines/titanic/pet_control/pet_inventory_glyphs.h +++ b/engines/titanic/pet_control/pet_inventory_glyphs.h @@ -53,6 +53,11 @@ public: */ void setItem(CGameObject *item, int val); + /** + * Returns the object associated with the glyph + */ + virtual CGameObject *getObjectAt() { return _item; } + /** * Does a processing action on the glyph */ @@ -73,9 +78,9 @@ private: CGameObject *getBackground(int index); public: /** - * + * Do an action on the glyphs */ - bool change(CInventoryGlyphAction *item); + bool doAction(CInventoryGlyphAction *item); }; } // End of namespace Titanic -- cgit v1.2.3