TITANIC: Added CCarry message handler stubs

This commit is contained in:
Paul Gilbert 2016-04-11 18:13:36 -04:00
parent cf785a19e3
commit ad6ea25c99
2 changed files with 78 additions and 0 deletions

View file

@ -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

View file

@ -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;