TITANIC: Added CCarry message handler stubs
This commit is contained in:
parent
cf785a19e3
commit
ad6ea25c99
2 changed files with 78 additions and 0 deletions
|
@ -24,6 +24,21 @@
|
||||||
|
|
||||||
namespace Titanic {
|
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),
|
CCarry::CCarry() : CGameObject(), _fieldDC(0), _fieldE0(1),
|
||||||
_field100(0), _field104(0), _field108(0), _field10C(0),
|
_field100(0), _field104(0), _field108(0), _field10C(0),
|
||||||
_field110(0), _field120(0), _field124(0), _field128(0),
|
_field110(0), _field120(0), _field124(0), _field128(0),
|
||||||
|
@ -77,4 +92,52 @@ void CCarry::load(SimpleFile *file) {
|
||||||
CGameObject::load(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
|
} // End of namespace Titanic
|
||||||
|
|
|
@ -24,10 +24,25 @@
|
||||||
#define TITANIC_CARRY_H
|
#define TITANIC_CARRY_H
|
||||||
|
|
||||||
#include "titanic/core/game_object.h"
|
#include "titanic/core/game_object.h"
|
||||||
|
#include "titanic/messages/messages.h"
|
||||||
|
#include "titanic/messages/mouse_messages.h"
|
||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CCarry : public CGameObject {
|
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:
|
private:
|
||||||
CString _string1;
|
CString _string1;
|
||||||
Point _pos1;
|
Point _pos1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue