aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/game/head_smash_event.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-08-22 20:22:41 -0400
committerPaul Gilbert2016-08-22 20:22:41 -0400
commit8b3829549a2c82a09f7475c35173238f7470d587 (patch)
treec0965bfcae7153af1f831be1204726644d99da9e /engines/titanic/game/head_smash_event.cpp
parent65bc8cb83c01cc1e7e6c8c093b8f42080800718d (diff)
downloadscummvm-rg350-8b3829549a2c82a09f7475c35173238f7470d587.tar.gz
scummvm-rg350-8b3829549a2c82a09f7475c35173238f7470d587.tar.bz2
scummvm-rg350-8b3829549a2c82a09f7475c35173238f7470d587.zip
TITANIC: Cleanup of engine references
Diffstat (limited to 'engines/titanic/game/head_smash_event.cpp')
-rw-r--r--engines/titanic/game/head_smash_event.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/engines/titanic/game/head_smash_event.cpp b/engines/titanic/game/head_smash_event.cpp
index 5b79acf7a5..5ec3d299d5 100644
--- a/engines/titanic/game/head_smash_event.cpp
+++ b/engines/titanic/game/head_smash_event.cpp
@@ -24,6 +24,11 @@
namespace Titanic {
+BEGIN_MESSAGE_MAP(CHeadSmashEvent, CBackground)
+ ON_MESSAGE(ActMsg)
+ ON_MESSAGE(MovieEndMsg)
+END_MESSAGE_MAP()
+
void CHeadSmashEvent::save(SimpleFile *file, int indent) {
file->writeNumberLine(1, indent);
CBackground::save(file, indent);
@@ -34,4 +39,18 @@ void CHeadSmashEvent::load(SimpleFile *file) {
CBackground::load(file);
}
+bool CHeadSmashEvent::ActMsg(CActMsg *msg) {
+ if (msg->_action == "PlayToEnd") {
+ setVisible(true);
+ playMovie(MOVIE_NOTIFY_OBJECT | MOVIE_GAMESTATE);
+ }
+
+ return true;
+}
+
+bool CHeadSmashEvent::MovieEndMsg(CMovieEndMsg *msg) {
+ changeView("CreatorsChamber.Node 1.W");
+ return true;
+}
+
} // End of namespace Titanic