aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_control.cpp
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.cpp
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.cpp')
-rw-r--r--engines/titanic/pet_control/pet_control.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/engines/titanic/pet_control/pet_control.cpp b/engines/titanic/pet_control/pet_control.cpp
index d67ce543fe..6be026167a 100644
--- a/engines/titanic/pet_control/pet_control.cpp
+++ b/engines/titanic/pet_control/pet_control.cpp
@@ -348,8 +348,16 @@ void CPetControl::drawSquares(CScreenManager *screenManager, int count) {
_frame.drawSquares(screenManager, count);
}
-void CPetControl::displayMessage(const CString &msg) {
- error("TODO: CPetControl::displayMessage");
+CGameObject *CPetControl::dragEnd(const Point &pt) const {
+ return _currentArea == PET_INVENTORY ? _inventory.dragEnd(pt) : nullptr;
+}
+
+bool CPetControl::checkDragEnd(CGameObject *item) const {
+ return _sections[_currentArea]->checkDragEnd(item);
+}
+
+void CPetControl::displayMessage(const CString &msg) const {
+ _sections[_currentArea]->displayMessage(msg);
}
CGameObject *CPetControl::getFirstObject() const {