diff options
author | Paul Gilbert | 2016-08-27 18:29:16 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-08-27 18:29:16 -0400 |
commit | 311006c84cd85897cb9c536e948bc6f5d36b3805 (patch) | |
tree | e1e33b74090a7abfda909d964b8e25c769e42f9b /engines/titanic/game/replacement_ear.cpp | |
parent | 1694680acea712db0149c74de412e309dbd0c1cc (diff) | |
download | scummvm-rg350-311006c84cd85897cb9c536e948bc6f5d36b3805.tar.gz scummvm-rg350-311006c84cd85897cb9c536e948bc6f5d36b3805.tar.bz2 scummvm-rg350-311006c84cd85897cb9c536e948bc6f5d36b3805.zip |
TITANIC: Implemented restaurant related game classes
Diffstat (limited to 'engines/titanic/game/replacement_ear.cpp')
-rw-r--r-- | engines/titanic/game/replacement_ear.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/titanic/game/replacement_ear.cpp b/engines/titanic/game/replacement_ear.cpp index 1f9960365d..e8bd384207 100644 --- a/engines/titanic/game/replacement_ear.cpp +++ b/engines/titanic/game/replacement_ear.cpp @@ -24,6 +24,10 @@ namespace Titanic { +BEGIN_MESSAGE_MAP(CReplacementEar, CBackground) + ON_MESSAGE(VisibleMsg) +END_MESSAGE_MAP() + void CReplacementEar::save(SimpleFile *file, int indent) { file->writeNumberLine(1, indent); CBackground::save(file, indent); @@ -34,4 +38,11 @@ void CReplacementEar::load(SimpleFile *file) { CBackground::load(file); } +bool CReplacementEar::VisibleMsg(CVisibleMsg *msg) { + setVisible(true); + playMovie(MOVIE_GAMESTATE); + playSound("z#64.wav"); + return true; +} + } // End of namespace Titanic |