diff options
author | Paul Gilbert | 2016-08-14 22:19:06 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-08-14 22:19:06 -0400 |
commit | 440f0927570d30ab61fb640df22394296efbb265 (patch) | |
tree | 5ae2fa3d16228a79b995c8ebb21e5e20b4ff040d /engines/titanic/game/belbot_get_light.cpp | |
parent | 3dfd4ba296f407cec7533afee941be42ca5f61f1 (diff) | |
download | scummvm-rg350-440f0927570d30ab61fb640df22394296efbb265.tar.gz scummvm-rg350-440f0927570d30ab61fb640df22394296efbb265.tar.bz2 scummvm-rg350-440f0927570d30ab61fb640df22394296efbb265.zip |
TITANIC: Implemented more game classes
Diffstat (limited to 'engines/titanic/game/belbot_get_light.cpp')
-rw-r--r-- | engines/titanic/game/belbot_get_light.cpp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/engines/titanic/game/belbot_get_light.cpp b/engines/titanic/game/belbot_get_light.cpp index 3e678a8a0c..2cc4c3ae19 100644 --- a/engines/titanic/game/belbot_get_light.cpp +++ b/engines/titanic/game/belbot_get_light.cpp @@ -24,6 +24,13 @@ namespace Titanic { +BEGIN_MESSAGE_MAP(CBelbotGetLight, CGameObject) + ON_MESSAGE(ActMsg) + ON_MESSAGE(MovieEndMsg) + ON_MESSAGE(MovieFrameMsg) + ON_MESSAGE(EnterViewMsg) +END_MESSAGE_MAP() + void CBelbotGetLight::save(SimpleFile *file, int indent) { file->writeNumberLine(1, indent); file->writeQuotedLine(_value, indent); @@ -36,4 +43,36 @@ void CBelbotGetLight::load(SimpleFile *file) { CGameObject::load(file); } +bool CBelbotGetLight::ActMsg(CActMsg *msg) { + if (msg->_action == "BellbotGetLight") { + _value = getFullViewName(); + lockMouse(); + changeView("1stClassState.Node 11.N", ""); + } + + return true; +} + +bool CBelbotGetLight::MovieEndMsg(CMovieEndMsg *msg) { + sleep(1000); + changeView(_value, ""); + unlockMouse(); + return true; +} + +bool CBelbotGetLight::MovieFrameMsg(CMovieFrameMsg *msg) { + if (getMovieFrame() == 37) { + CActMsg actMsg("BellbotGetLight"); + actMsg.execute("Eye1"); + } + + return true; +} + +bool CBelbotGetLight::EnterViewMsg(CEnterViewMsg *msg) { + playMovie(MOVIE_NOTIFY_OBJECT); + movieEvent(37); + return true; +} + } // End of namespace Titanic |