diff options
-rw-r--r-- | engines/titanic/game/cdrom_tray.cpp | 15 | ||||
-rw-r--r-- | engines/titanic/game/cdrom_tray.h | 10 |
2 files changed, 24 insertions, 1 deletions
diff --git a/engines/titanic/game/cdrom_tray.cpp b/engines/titanic/game/cdrom_tray.cpp index fcb65fd42d..7265332c02 100644 --- a/engines/titanic/game/cdrom_tray.cpp +++ b/engines/titanic/game/cdrom_tray.cpp @@ -43,4 +43,19 @@ void CCDROMTray::load(SimpleFile *file) { CGameObject::load(file); } +bool CCDROMTray::handleMessage(CActMsg &msg) { + // TODO + return true; +} + +bool CCDROMTray::handleMessage(CMovieEndMsg &msg) { + // TODO + return true; +} + +bool CCDROMTray::handleMessage(CStatusChangeMsg &msg) { + // TODO + return true; +} + } // End of namespace Titanic diff --git a/engines/titanic/game/cdrom_tray.h b/engines/titanic/game/cdrom_tray.h index b5c4b375fe..b1893c548e 100644 --- a/engines/titanic/game/cdrom_tray.h +++ b/engines/titanic/game/cdrom_tray.h @@ -24,13 +24,21 @@ #define TITANIC_CDROM_TRAY_H #include "titanic/core/game_object.h" +#include "titanic/messages/messages.h" namespace Titanic { -class CCDROMTray : public CGameObject { +class CCDROMTray : public CGameObject, + public CActMsgTarget, + public CMovieEndMsgTarget, + public CStatusChangeMsgTarget { public: int _state; CString _string1; +protected: + virtual bool handleMessage(CActMsg &msg); + virtual bool handleMessage(CMovieEndMsg &msg); + virtual bool handleMessage(CStatusChangeMsg &msg); public: CLASSDEF CCDROMTray(); |