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/game/parrot/parrot_lobby_view_object.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/game/parrot/parrot_lobby_view_object.cpp')
-rw-r--r-- | engines/titanic/game/parrot/parrot_lobby_view_object.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/engines/titanic/game/parrot/parrot_lobby_view_object.cpp b/engines/titanic/game/parrot/parrot_lobby_view_object.cpp index ae398036a8..1151325676 100644 --- a/engines/titanic/game/parrot/parrot_lobby_view_object.cpp +++ b/engines/titanic/game/parrot/parrot_lobby_view_object.cpp @@ -24,16 +24,28 @@ namespace Titanic { +BEGIN_MESSAGE_MAP(CParrotLobbyViewObject, CParrotLobbyObject) + ON_MESSAGE(ActMsg) +END_MESSAGE_MAP() + void CParrotLobbyViewObject::save(SimpleFile *file, int indent) { file->writeNumberLine(1, indent); - file->writeNumberLine(_fieldBC, indent); + file->writeNumberLine(_flag, indent); CParrotLobbyObject::save(file, indent); } void CParrotLobbyViewObject::load(SimpleFile *file) { file->readNumber(); - _fieldBC = file->readNumber(); + _flag = file->readNumber(); CParrotLobbyObject::load(file); } +bool CParrotLobbyViewObject::ActMsg(CActMsg *msg) { + if (msg->_action != "Refresh") + return false; + + setVisible(_flag ? _haveParrot : _haveStick); + return true; +} + } // End of namespace Titanic |