diff options
author | Paul Gilbert | 2016-08-12 23:53:18 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-08-12 23:53:18 -0400 |
commit | 6a9923ec07d019cbbf8c35e36030391dac256e79 (patch) | |
tree | 0779d0d2489a9f6fda7f9c3e17484213d53d752e /engines/titanic/game/annoy_barbot.cpp | |
parent | 4f8c31ecf7c8ac71e1be65771ce508fb11c62749 (diff) | |
download | scummvm-rg350-6a9923ec07d019cbbf8c35e36030391dac256e79.tar.gz scummvm-rg350-6a9923ec07d019cbbf8c35e36030391dac256e79.tar.bz2 scummvm-rg350-6a9923ec07d019cbbf8c35e36030391dac256e79.zip |
TITANIC: Implemented some game object classes
Diffstat (limited to 'engines/titanic/game/annoy_barbot.cpp')
-rw-r--r-- | engines/titanic/game/annoy_barbot.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/engines/titanic/game/annoy_barbot.cpp b/engines/titanic/game/annoy_barbot.cpp index d69d9fff3c..8b22f9c13a 100644 --- a/engines/titanic/game/annoy_barbot.cpp +++ b/engines/titanic/game/annoy_barbot.cpp @@ -26,6 +26,10 @@ namespace Titanic { int CAnnoyBarbot::_v1; +BEGIN_MESSAGE_MAP(CAnnoyBarbot, CGameObject) + ON_MESSAGE(MouseButtonDownMsg) +END_MESSAGE_MAP() + void CAnnoyBarbot::save(SimpleFile *file, int indent) { file->writeNumberLine(1, indent); file->writeNumberLine(_v1, indent); @@ -38,4 +42,13 @@ void CAnnoyBarbot::load(SimpleFile *file) { CGameObject::load(file); } +bool CAnnoyBarbot::MouseButtonDownMsg(CMouseButtonDownMsg *msg) { + if ((++_v1 % 3) == 1) { + CActMsg actMsg("GoRingBell"); + actMsg.execute("Barbot"); + } + + return true; +} + } // End of namespace Titanic |