aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_control.h
diff options
context:
space:
mode:
authorPaul Gilbert2016-04-30 14:55:15 -0400
committerPaul Gilbert2016-07-10 16:37:44 -0400
commitb11033800d1455bd4c35af1126bd4f0cf6b2fb77 (patch)
tree51798f1e90cf65b73e3bae936b9a157360f6c6c5 /engines/titanic/pet_control/pet_control.h
parent01989265aa6abd68f2aa5d799d867886c8ed3799 (diff)
downloadscummvm-rg350-b11033800d1455bd4c35af1126bd4f0cf6b2fb77.tar.gz
scummvm-rg350-b11033800d1455bd4c35af1126bd4f0cf6b2fb77.tar.bz2
scummvm-rg350-b11033800d1455bd4c35af1126bd4f0cf6b2fb77.zip
TITANIC: Implementing PET support widgets
Diffstat (limited to 'engines/titanic/pet_control/pet_control.h')
-rw-r--r--engines/titanic/pet_control/pet_control.h12
1 files changed, 8 insertions, 4 deletions
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