aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2016-03-31 12:49:10 -0400
committerPaul Gilbert2016-03-31 12:49:10 -0400
commit6a1b452e163a5ebdf77e4753fc647e390a48b4fb (patch)
tree93b7a5d20ae298782a8e6d631a89a682671a232b
parent6d852165e97d4a22e029446b1a97417af38175fb (diff)
downloadscummvm-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.cpp15
-rw-r--r--engines/titanic/game/cdrom_tray.h10
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();