diff options
author | Paul Gilbert | 2016-04-13 22:54:34 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-10 16:11:03 -0400 |
commit | 57d75d19cfc0801211b3d22c292f1585c8ca1c5a (patch) | |
tree | 4724bd2f49ea561b3ac2abfa25218745d7974916 /engines/titanic | |
parent | 18a38c84e9ddeeb063621c290b8be6dce72daaf1 (diff) | |
download | scummvm-rg350-57d75d19cfc0801211b3d22c292f1585c8ca1c5a.tar.gz scummvm-rg350-57d75d19cfc0801211b3d22c292f1585c8ca1c5a.tar.bz2 scummvm-rg350-57d75d19cfc0801211b3d22c292f1585c8ca1c5a.zip |
TITANIC: Add CMagazine msg handler stubs
Diffstat (limited to 'engines/titanic')
-rw-r--r-- | engines/titanic/carry/magazine.cpp | 27 | ||||
-rw-r--r-- | engines/titanic/carry/magazine.h | 7 |
2 files changed, 34 insertions, 0 deletions
diff --git a/engines/titanic/carry/magazine.cpp b/engines/titanic/carry/magazine.cpp index efb68c1256..20e0b16f5e 100644 --- a/engines/titanic/carry/magazine.cpp +++ b/engines/titanic/carry/magazine.cpp @@ -24,6 +24,13 @@ namespace Titanic { +BEGIN_MESSAGE_MAP(CMagazine, CCarry) + ON_MESSAGE(UseWithCharMsg) + ON_MESSAGE(MouseDoubleClickMsg) + ON_MESSAGE(VisibleMsg) + ON_MESSAGE(UseWithOtherMsg) +END_MESSAGE_MAP() + CMagazine::CMagazine() : CCarry() { } @@ -43,4 +50,24 @@ void CMagazine::load(SimpleFile *file) { CCarry::load(file); } +bool CMagazine::UseWithCharMsg(CUseWithCharMsg *msg) { + // todo + return true; +} + +bool CMagazine::MouseDoubleClickMsg(CMouseDoubleClickMsg *msg) { + // todo + return true; +} + +bool CMagazine::VisibleMsg(CVisibleMsg *msg) { + // todo + return true; +} + +bool CMagazine::UseWithOtherMsg(CUseWithOtherMsg *msg) { + // todo + return true; +} + } // End of namespace Titanic diff --git a/engines/titanic/carry/magazine.h b/engines/titanic/carry/magazine.h index 7621599038..16ef4bb2b0 100644 --- a/engines/titanic/carry/magazine.h +++ b/engines/titanic/carry/magazine.h @@ -24,10 +24,17 @@ #define TITANIC_MAGAZINE_H #include "titanic/carry/carry.h" +#include "titanic/messages/messages.h" +#include "titanic/messages/mouse_messages.h" namespace Titanic { class CMagazine : public CCarry { + DECLARE_MESSAGE_MAP + bool UseWithCharMsg(CUseWithCharMsg *msg); + bool MouseDoubleClickMsg(CMouseDoubleClickMsg *msg); + bool VisibleMsg(CVisibleMsg *msg); + bool UseWithOtherMsg(CUseWithOtherMsg *msg); private: int _field12C; int _field130; |