aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/game
diff options
context:
space:
mode:
authorPaul Gilbert2016-03-24 21:02:25 -0400
committerPaul Gilbert2016-03-24 21:02:25 -0400
commitc948e8812ebb619f22adb7794da6dcfb6d5d6b9e (patch)
tree8b87bcb0ceb513dcdd810dde682bf9c550e71251 /engines/titanic/game
parentfd78a874ccfdbc652241dc4402f6ca96ca188170 (diff)
downloadscummvm-rg350-c948e8812ebb619f22adb7794da6dcfb6d5d6b9e.tar.gz
scummvm-rg350-c948e8812ebb619f22adb7794da6dcfb6d5d6b9e.tar.bz2
scummvm-rg350-c948e8812ebb619f22adb7794da6dcfb6d5d6b9e.zip
TITANIC: Support methods needed by CTelevision
Diffstat (limited to 'engines/titanic/game')
-rw-r--r--engines/titanic/game/television.cpp52
-rw-r--r--engines/titanic/game/television.h31
2 files changed, 82 insertions, 1 deletions
diff --git a/engines/titanic/game/television.cpp b/engines/titanic/game/television.cpp
index 4c6b38ad32..102049abbf 100644
--- a/engines/titanic/game/television.cpp
+++ b/engines/titanic/game/television.cpp
@@ -69,4 +69,56 @@ void CTelevision::load(SimpleFile *file) {
CBackground::load(file);
}
+bool CTelevision::handleMessage(CLeaveViewMsg &msg) {
+ return true;
+}
+
+bool CTelevision::handleMessage(CChangeSeasonMsg &msg) {
+ return true;
+}
+
+bool CTelevision::handleMessage(CEnterViewMsg &msg) {
+ return true;
+}
+
+bool CTelevision::handleMessage(CPETUpMsg &msg) {
+ return true;
+}
+
+bool CTelevision::handleMessage(CPETDownMsg &msg) {
+ return true;
+}
+
+bool CTelevision::handleMessage(CStatusChangeMsg &msg) {
+ return true;
+}
+
+bool CTelevision::handleMessage(CActMsg &msg) {
+ return true;
+}
+
+bool CTelevision::handleMessage(CPETActivateMsg &msg) {
+ return true;
+}
+
+bool CTelevision::handleMessage(CMovieEndMsg &msg) {
+ return true;
+}
+
+bool CTelevision::handleMessage(CShipSettingMsg &msg) {
+ return true;
+}
+
+bool CTelevision::handleMessage(CTurnOff &msg) {
+ return true;
+}
+
+bool CTelevision::handleMessage(CTurnOn &msg) {
+ return true;
+}
+
+bool CTelevision::handleMessage(CLightsMsg &msg) {
+ return true;
+}
+
} // End of namespace Titanic
diff --git a/engines/titanic/game/television.h b/engines/titanic/game/television.h
index d64c253d90..04c201e681 100644
--- a/engines/titanic/game/television.h
+++ b/engines/titanic/game/television.h
@@ -24,10 +24,25 @@
#define TITANIC_TELEVISION_H
#include "titanic/core/background.h"
+#include "titanic/messages/messages.h"
+#include "titanic/messages/pet_messages.h"
namespace Titanic {
-class CTelevision : public CBackground {
+class CTelevision : public CBackground,
+ public CLeaveViewMsgTarget,
+ public CChangeSeasonMsgTarget,
+ public CEnterViewMsgTarget,
+ public CPETUpMsgTarget,
+ public CPETDownMsgTarget,
+ public CStatusChangeMsgTarget,
+ public CActMsgTarget,
+ public CPETActivateMsgTarget,
+ public CMovieEndMsgTarget,
+ public CShipSettingMsgTarget,
+ public CTurnOffTarget,
+ public CTurnOnTarget,
+ public CLightsMsgTarget {
private:
static int _v1;
static int _v2;
@@ -41,6 +56,20 @@ private:
int _fieldE8;
int _fieldEC;
int _fieldF0;
+protected:
+ virtual bool handleMessage(CLeaveViewMsg &msg);
+ virtual bool handleMessage(CChangeSeasonMsg &msg);
+ virtual bool handleMessage(CEnterViewMsg &msg);
+ virtual bool handleMessage(CPETUpMsg &msg);
+ virtual bool handleMessage(CPETDownMsg &msg);
+ virtual bool handleMessage(CStatusChangeMsg &msg);
+ virtual bool handleMessage(CActMsg &msg);
+ virtual bool handleMessage(CPETActivateMsg &msg);
+ virtual bool handleMessage(CMovieEndMsg &msg);
+ virtual bool handleMessage(CShipSettingMsg &msg);
+ virtual bool handleMessage(CTurnOff &msg);
+ virtual bool handleMessage(CTurnOn &msg);
+ virtual bool handleMessage(CLightsMsg &msg);
public:
CLASSDEF
CTelevision();