From b11033800d1455bd4c35af1126bd4f0cf6b2fb77 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 30 Apr 2016 14:55:15 -0400 Subject: TITANIC: Implementing PET support widgets --- engines/titanic/pet_control/pet_control.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'engines/titanic/pet_control/pet_control.h') diff --git a/engines/titanic/pet_control/pet_control.h b/engines/titanic/pet_control/pet_control.h index 5fbd8a0107..b4c460e8bb 100644 --- a/engines/titanic/pet_control/pet_control.h +++ b/engines/titanic/pet_control/pet_control.h @@ -207,14 +207,17 @@ public: /** * Handles drag ends within the PET */ - CGameObject *dragEnd(const Point &pt) const { - return _currentArea == PET_INVENTORY ? _inventory.dragEnd(pt) : nullptr; - } + CGameObject *dragEnd(const Point &pt) const; + + /** + * Handles checking when a drag-drop operation ends + */ + bool checkDragEnd(CGameObject *item) const; /** * Display a message */ - void displayMessage(const CString &msg); + void displayMessage(const CString &msg) const; /** * Get the first game object stored in the PET @@ -284,6 +287,7 @@ public: * Stop a timer */ void stopPetTimer(uint timerIndex); + }; } // End of namespace Titanic -- cgit v1.2.3