diff options
author | Paul Gilbert | 2016-03-17 23:01:46 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-03-17 23:01:46 -0400 |
commit | ea585b0aa53544e114cdb0080cacbcb324e6e1ff (patch) | |
tree | 313d0fff3ed2fe1f9d23da41acf7811b714735e3 | |
parent | 04b8c75a9371d0ad353cbf4cc86da6087e94c7df (diff) | |
download | scummvm-rg350-ea585b0aa53544e114cdb0080cacbcb324e6e1ff.tar.gz scummvm-rg350-ea585b0aa53544e114cdb0080cacbcb324e6e1ff.tar.bz2 scummvm-rg350-ea585b0aa53544e114cdb0080cacbcb324e6e1ff.zip |
TITANIC: Add some CEnterViewMsg stubs
-rw-r--r-- | engines/titanic/game/arboretum_gate.cpp | 13 | ||||
-rw-r--r-- | engines/titanic/game/arboretum_gate.h | 14 | ||||
-rw-r--r-- | engines/titanic/game/auto_animate.cpp | 5 | ||||
-rw-r--r-- | engines/titanic/game/auto_animate.h | 5 |
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) {} |