diff options
author | Paul Gilbert | 2016-08-26 22:15:58 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-08-26 22:15:58 -0400 |
commit | 996811181063d1920454e0e09115b49e33bc8f5d (patch) | |
tree | 0da93ab4ca086f7c0d6afd92f8effb2a4a31d3cb /engines/titanic/carry/perch.cpp | |
parent | 02f679180425f7f2b95236ffeaa67805d2a30e7a (diff) | |
download | scummvm-rg350-996811181063d1920454e0e09115b49e33bc8f5d.tar.gz scummvm-rg350-996811181063d1920454e0e09115b49e33bc8f5d.tar.bz2 scummvm-rg350-996811181063d1920454e0e09115b49e33bc8f5d.zip |
TITANIC: Implemented other parrot related game classes
Diffstat (limited to 'engines/titanic/carry/perch.cpp')
-rw-r--r-- | engines/titanic/carry/perch.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/engines/titanic/carry/perch.cpp b/engines/titanic/carry/perch.cpp index 281b3fce53..4f0e76bdb0 100644 --- a/engines/titanic/carry/perch.cpp +++ b/engines/titanic/carry/perch.cpp @@ -24,6 +24,10 @@ namespace Titanic { +BEGIN_MESSAGE_MAP(CPerch, CCentralCore) + ON_MESSAGE(UseWithOtherMsg) +END_MESSAGE_MAP() + void CPerch::save(SimpleFile *file, int indent) { file->writeNumberLine(1, indent); CCentralCore::save(file, indent); @@ -34,4 +38,13 @@ void CPerch::load(SimpleFile *file) { CCentralCore::load(file); } +bool CPerch::UseWithOtherMsg(CUseWithOtherMsg *msg) { + if (msg->_other->isEquals("SpeechCentre")) { + CShowTextMsg textMsg("This does not reach."); + textMsg.execute("PET"); + } + + return CCentralCore::UseWithOtherMsg(msg); +} + } // End of namespace Titanic |