aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/titanic/game/arboretum_gate.cpp13
-rw-r--r--engines/titanic/game/arboretum_gate.h14
-rw-r--r--engines/titanic/game/auto_animate.cpp5
-rw-r--r--engines/titanic/game/auto_animate.h5
4 files changed, 29 insertions, 8 deletions
diff --git a/engines/titanic/game/arboretum_gate.cpp b/engines/titanic/game/arboretum_gate.cpp
index 3f13676796..f4193b0f2f 100644
--- a/engines/titanic/game/arboretum_gate.cpp
+++ b/engines/titanic/game/arboretum_gate.cpp
@@ -133,4 +133,17 @@ void CArboretumGate::load(SimpleFile *file) {
CBackground::load(file);
}
+bool CArboretumGate::handleEvent(const CActMsg &msg) { return false; }
+bool CArboretumGate::handleEvent(const CLeaveViewMsg &msg) { return false; }
+bool CArboretumGate::handleEvent(const CTurnOff &msg) { return false; }
+bool CArboretumGate::handleEvent(const CMouseButtonDownMsg &msg) { return false; }
+
+bool CArboretumGate::handleEvent(const CEnterViewMsg &msg) {
+ warning("CArboretumGate::handleEvent");
+ return false;
+}
+
+bool CArboretumGate::handleEvent(const CTurnOn &msg) { return false; }
+bool CArboretumGate::handleEvent(const CMovieEndMsg &msg) { return false; }
+
} // End of namespace Titanic
diff --git a/engines/titanic/game/arboretum_gate.h b/engines/titanic/game/arboretum_gate.h
index 2c2b81feab..514192e151 100644
--- a/engines/titanic/game/arboretum_gate.h
+++ b/engines/titanic/game/arboretum_gate.h
@@ -69,13 +69,13 @@ private:
int _field150;
CString _string2;
protected:
- virtual bool handleEvent(const CActMsg &msg) { return false; }
- virtual bool handleEvent(const CLeaveViewMsg &msg) { return false; }
- virtual bool handleEvent(const CTurnOff &msg) { return false; }
- virtual bool handleEvent(const CMouseButtonDownMsg &msg) { return false; }
- virtual bool handleEvent(const CEnterViewMsg &msg) { return false; }
- virtual bool handleEvent(const CTurnOn &msg) { return false; }
- virtual bool handleEvent(const CMovieEndMsg &msg) { return false; }
+ virtual bool handleEvent(const CActMsg &msg);
+ virtual bool handleEvent(const CLeaveViewMsg &msg);
+ virtual bool handleEvent(const CTurnOff &msg);
+ virtual bool handleEvent(const CMouseButtonDownMsg &msg);
+ virtual bool handleEvent(const CEnterViewMsg &msg);
+ virtual bool handleEvent(const CTurnOn &msg);
+ virtual bool handleEvent(const CMovieEndMsg &msg);
public:
CLASSDEF
CArboretumGate();
diff --git a/engines/titanic/game/auto_animate.cpp b/engines/titanic/game/auto_animate.cpp
index bbaeebf091..c79fa74167 100644
--- a/engines/titanic/game/auto_animate.cpp
+++ b/engines/titanic/game/auto_animate.cpp
@@ -40,4 +40,9 @@ void CAutoAnimate::load(SimpleFile *file) {
CBackground::load(file);
}
+bool CAutoAnimate::handleEvent(const CEnterViewMsg &msg) {
+ warning("CAutoAnimate::handleEvent");
+ return true;
+}
+
} // End of namespace Titanic
diff --git a/engines/titanic/game/auto_animate.h b/engines/titanic/game/auto_animate.h
index 0fd4ad768f..160fe09d90 100644
--- a/engines/titanic/game/auto_animate.h
+++ b/engines/titanic/game/auto_animate.h
@@ -24,14 +24,17 @@
#define TITANIC_AUTO_ANIMATE_H
#include "titanic/core/background.h"
+#include "titanic/messages/messages.h"
namespace Titanic {
class CAutoAnimate : public CBackground {
-public:
+private:
int _fieldE0;
int _fieldE4;
int _fieldE8;
+protected:
+ virtual bool handleEvent(const CEnterViewMsg &msg);
public:
CLASSDEF
CAutoAnimate() : CBackground(), _fieldE0(1), _fieldE4(1), _fieldE8(0) {}