aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/carry
diff options
context:
space:
mode:
authorPaul Gilbert2016-08-12 23:53:18 -0400
committerPaul Gilbert2016-08-12 23:53:18 -0400
commit6a9923ec07d019cbbf8c35e36030391dac256e79 (patch)
tree0779d0d2489a9f6fda7f9c3e17484213d53d752e /engines/titanic/carry
parent4f8c31ecf7c8ac71e1be65771ce508fb11c62749 (diff)
downloadscummvm-rg350-6a9923ec07d019cbbf8c35e36030391dac256e79.tar.gz
scummvm-rg350-6a9923ec07d019cbbf8c35e36030391dac256e79.tar.bz2
scummvm-rg350-6a9923ec07d019cbbf8c35e36030391dac256e79.zip
TITANIC: Implemented some game object classes
Diffstat (limited to 'engines/titanic/carry')
-rw-r--r--engines/titanic/carry/auditory_centre.cpp10
-rw-r--r--engines/titanic/carry/auditory_centre.h2
2 files changed, 12 insertions, 0 deletions
diff --git a/engines/titanic/carry/auditory_centre.cpp b/engines/titanic/carry/auditory_centre.cpp
index d88989a801..0bda975a36 100644
--- a/engines/titanic/carry/auditory_centre.cpp
+++ b/engines/titanic/carry/auditory_centre.cpp
@@ -24,6 +24,10 @@
namespace Titanic {
+BEGIN_MESSAGE_MAP(CAuditoryCentre, CBrain)
+ ON_MESSAGE(PuzzleSolvedMsg)
+END_MESSAGE_MAP()
+
void CAuditoryCentre::save(SimpleFile *file, int indent) {
file->writeNumberLine(1, indent);
CBrain::save(file, indent);
@@ -34,4 +38,10 @@ void CAuditoryCentre::load(SimpleFile *file) {
CBrain::load(file);
}
+bool CAuditoryCentre::PuzzleSolvedMsg(CPuzzleSolvedMsg *msg) {
+ _fieldE0 = 1;
+ setVisible(true);
+ return true;
+}
+
} // End of namespace Titanic
diff --git a/engines/titanic/carry/auditory_centre.h b/engines/titanic/carry/auditory_centre.h
index 743f8f2498..6f24e86208 100644
--- a/engines/titanic/carry/auditory_centre.h
+++ b/engines/titanic/carry/auditory_centre.h
@@ -28,6 +28,8 @@
namespace Titanic {
class CAuditoryCentre : public CBrain {
+ DECLARE_MESSAGE_MAP;
+ bool PuzzleSolvedMsg(CPuzzleSolvedMsg *msg);
public:
CLASSDEF;