aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic
diff options
context:
space:
mode:
authorPaul Gilbert2016-04-11 18:13:36 -0400
committerPaul Gilbert2016-07-10 16:10:53 -0400
commitad6ea25c99654b93c712a64fe322dce42e7fd0e8 (patch)
tree322a7e17cb0f03b6a0ffadaf6af1bd2668eeac2a /engines/titanic
parentcf785a19e3dbe52eb71b253a5dcdcd7ba77b47ca (diff)
downloadscummvm-rg350-ad6ea25c99654b93c712a64fe322dce42e7fd0e8.tar.gz
scummvm-rg350-ad6ea25c99654b93c712a64fe322dce42e7fd0e8.tar.bz2
scummvm-rg350-ad6ea25c99654b93c712a64fe322dce42e7fd0e8.zip
TITANIC: Added CCarry message handler stubs
Diffstat (limited to 'engines/titanic')
-rw-r--r--engines/titanic/carry/carry.cpp63
-rw-r--r--engines/titanic/carry/carry.h15
2 files changed, 78 insertions, 0 deletions
diff --git a/engines/titanic/carry/carry.cpp b/engines/titanic/carry/carry.cpp
index 74544896dd..b075444cd7 100644
--- a/engines/titanic/carry/carry.cpp
+++ b/engines/titanic/carry/carry.cpp
@@ -24,6 +24,21 @@
namespace Titanic {
+BEGIN_MESSAGE_MAP(CCarry, CGameObject)
+ ON_MESSAGE(MouseDragStartMsg)
+ ON_MESSAGE(MouseDragMoveMsg)
+ ON_MESSAGE(MouseDragEndMsg)
+ ON_MESSAGE(UseWithCharMsg)
+ ON_MESSAGE(LeaveViewMsg)
+ ON_MESSAGE(UseWithOtherMsg)
+ ON_MESSAGE(VisibleMsg)
+ ON_MESSAGE(MouseButtonDownMsg)
+ ON_MESSAGE(RemoveFromGameMsg)
+ ON_MESSAGE(MoveToStartPosMsg)
+ ON_MESSAGE(EnterViewMsg)
+ ON_MESSAGE(PassOnDragStartMsg)
+END_MESSAGE_MAP()
+
CCarry::CCarry() : CGameObject(), _fieldDC(0), _fieldE0(1),
_field100(0), _field104(0), _field108(0), _field10C(0),
_field110(0), _field120(0), _field124(0), _field128(0),
@@ -77,4 +92,52 @@ void CCarry::load(SimpleFile *file) {
CGameObject::load(file);
}
+bool CCarry::MouseDragStartMsg(CMouseDragStartMsg *msg) {
+ return true;
+}
+
+bool CCarry::MouseDragMoveMsg(CMouseDragMoveMsg *msg) {
+ return true;
+}
+
+bool CCarry::MouseDragEndMsg(CMouseDragEndMsg *msg) {
+ return true;
+}
+
+bool CCarry::UseWithCharMsg(CUseWithCharMsg *msg) {
+ return true;
+}
+
+bool CCarry::LeaveViewMsg(CLeaveViewMsg *msg) {
+ return true;
+}
+
+bool CCarry::UseWithOtherMsg(CUseWithOtherMsg *msg) {
+ return true;
+}
+
+bool CCarry::VisibleMsg(CVisibleMsg *msg) {
+ return true;
+}
+
+bool CCarry::MouseButtonDownMsg(CMouseButtonDownMsg *msg) {
+ return true;
+}
+
+bool CCarry::RemoveFromGameMsg(CRemoveFromGameMsg *msg) {
+ return true;
+}
+
+bool CCarry::MoveToStartPosMsg(CMoveToStartPosMsg *msg) {
+ return true;
+}
+
+bool CCarry::EnterViewMsg(CEnterViewMsg *msg) {
+ return true;
+}
+
+bool CCarry::PassOnDragStartMsg(CPassOnDragStartMsg *msg) {
+ return true;
+}
+
} // End of namespace Titanic
diff --git a/engines/titanic/carry/carry.h b/engines/titanic/carry/carry.h
index 309b8a8eb8..9788b25602 100644
--- a/engines/titanic/carry/carry.h
+++ b/engines/titanic/carry/carry.h
@@ -24,10 +24,25 @@
#define TITANIC_CARRY_H
#include "titanic/core/game_object.h"
+#include "titanic/messages/messages.h"
+#include "titanic/messages/mouse_messages.h"
namespace Titanic {
class CCarry : public CGameObject {
+ DECLARE_MESSAGE_MAP
+ bool MouseDragStartMsg(CMouseDragStartMsg *msg);
+ bool MouseDragMoveMsg(CMouseDragMoveMsg *msg);
+ bool MouseDragEndMsg(CMouseDragEndMsg *msg);
+ bool UseWithCharMsg(CUseWithCharMsg *msg);
+ bool LeaveViewMsg(CLeaveViewMsg *msg);
+ bool UseWithOtherMsg(CUseWithOtherMsg *msg);
+ bool VisibleMsg(CVisibleMsg *msg);
+ bool MouseButtonDownMsg(CMouseButtonDownMsg *msg);
+ bool RemoveFromGameMsg(CRemoveFromGameMsg *msg);
+ bool MoveToStartPosMsg(CMoveToStartPosMsg *msg);
+ bool EnterViewMsg(CEnterViewMsg *msg);
+ bool PassOnDragStartMsg(CPassOnDragStartMsg *msg);
private:
CString _string1;
Point _pos1;