diff options
author | Paul Gilbert | 2016-03-31 12:49:10 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-03-31 12:49:10 -0400 |
commit | 6a1b452e163a5ebdf77e4753fc647e390a48b4fb (patch) | |
tree | 93b7a5d20ae298782a8e6d631a89a682671a232b | |
parent | 6d852165e97d4a22e029446b1a97417af38175fb (diff) | |
download | scummvm-rg350-6a1b452e163a5ebdf77e4753fc647e390a48b4fb.tar.gz scummvm-rg350-6a1b452e163a5ebdf77e4753fc647e390a48b4fb.tar.bz2 scummvm-rg350-6a1b452e163a5ebdf77e4753fc647e390a48b4fb.zip |
TITANIC: Work on implementing CDROM Tray class
-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(); |