aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/game/missiveomat.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-08-24 18:42:32 -0400
committerPaul Gilbert2016-08-24 18:42:32 -0400
commite733f8113f69f37b14e8a2447f5e7dce89a1670d (patch)
tree085e260735f91cedc9a6572baad64e51ec4b6400 /engines/titanic/game/missiveomat.cpp
parentfaf52df0653006ad8107e91bb24bc747e4b01e29 (diff)
downloadscummvm-rg350-e733f8113f69f37b14e8a2447f5e7dce89a1670d.tar.gz
scummvm-rg350-e733f8113f69f37b14e8a2447f5e7dce89a1670d.tar.bz2
scummvm-rg350-e733f8113f69f37b14e8a2447f5e7dce89a1670d.zip
TITANIC: Implemented more game classes
Diffstat (limited to 'engines/titanic/game/missiveomat.cpp')
-rw-r--r--engines/titanic/game/missiveomat.cpp37
1 files changed, 37 insertions, 0 deletions
diff --git a/engines/titanic/game/missiveomat.cpp b/engines/titanic/game/missiveomat.cpp
index 931b146801..32ae24e319 100644
--- a/engines/titanic/game/missiveomat.cpp
+++ b/engines/titanic/game/missiveomat.cpp
@@ -24,6 +24,14 @@
namespace Titanic {
+BEGIN_MESSAGE_MAP(CMissiveOMat, CGameObject)
+ ON_MESSAGE(EnterViewMsg)
+ ON_MESSAGE(KeyCharMsg)
+ ON_MESSAGE(TimerMsg)
+ ON_MESSAGE(MissiveOMatActionMsg)
+ ON_MESSAGE(LeaveViewMsg)
+END_MESSAGE_MAP()
+
CMissiveOMat::CMissiveOMat() : CGameObject(), _fieldBC(1),
_fieldC0(0), _fieldC4(0), _fieldE0(-1) {
}
@@ -52,4 +60,33 @@ void CMissiveOMat::load(SimpleFile *file) {
CGameObject::load(file);
}
+bool CMissiveOMat::EnterViewMsg(CEnterViewMsg *msg) {
+ CMissiveOMatActionMsg actionMsg(9);
+ actionMsg.execute(this);
+ return true;
+}
+
+bool CMissiveOMat::KeyCharMsg(CKeyCharMsg *msg) {
+ // TODO
+ return true;
+}
+
+bool CMissiveOMat::TimerMsg(CTimerMsg *msg) {
+ if (_fieldBC == 3) {
+ // TODO
+ }
+
+ return true;
+}
+
+bool CMissiveOMat::MissiveOMatActionMsg(CMissiveOMatActionMsg *msg) {
+ // TODO
+ return true;
+}
+
+bool CMissiveOMat::LeaveViewMsg(CLeaveViewMsg *msg) {
+ // TODO
+ return true;
+}
+
} // End of namespace Titanic