aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk
diff options
context:
space:
mode:
authorAlyssa Milburn2011-01-22 11:37:01 +0000
committerAlyssa Milburn2011-01-22 11:37:01 +0000
commitdb8f0fdce3dde08ebbc3ff5288b5ffb34b7e24b2 (patch)
treeaeeb11da547c6911f58ba6f82490b419f04325ba /engines/mohawk
parent5f87a5b9a8667dd3c7beafb138278c6817ac08db (diff)
downloadscummvm-rg350-db8f0fdce3dde08ebbc3ff5288b5ffb34b7e24b2.tar.gz
scummvm-rg350-db8f0fdce3dde08ebbc3ff5288b5ffb34b7e24b2.tar.bz2
scummvm-rg350-db8f0fdce3dde08ebbc3ff5288b5ffb34b7e24b2.zip
MOHAWK: Implement a couple more CSTime events.
svn-id: r55415
Diffstat (limited to 'engines/mohawk')
-rw-r--r--engines/mohawk/cstime.cpp13
-rw-r--r--engines/mohawk/cstime.h10
2 files changed, 18 insertions, 5 deletions
diff --git a/engines/mohawk/cstime.cpp b/engines/mohawk/cstime.cpp
index 0540b7511c..9959af86e6 100644
--- a/engines/mohawk/cstime.cpp
+++ b/engines/mohawk/cstime.cpp
@@ -500,6 +500,19 @@ void MohawkEngine_CSTime::triggerEvent(CSTimeEvent &event) {
// FIXME
break;
+ case kCSTimeEventCharSetState:
+ _case->getCurrScene()->getChar(event.param1)->_enabled = event.param2;
+ break;
+
+ case kCSTimeEventCharSetupRestPos:
+ _case->getCurrScene()->getChar(event.param1)->setupRestPos();
+ break;
+
+ case kCSTimeEventSetInsertBefore:
+ warning("ignoring insert before");
+ // FIXME
+ break;
+
case kCSTimeEventUpdateBubble:
switch (event.param2) {
case 0:
diff --git a/engines/mohawk/cstime.h b/engines/mohawk/cstime.h
index 13a8db863e..dca966f8b6 100644
--- a/engines/mohawk/cstime.h
+++ b/engines/mohawk/cstime.h
@@ -66,7 +66,7 @@ enum {
kCSTimeEventUnused21 = 21,
kCSTimeEventShowBigNote = 22,
kCSTimeEventActivateCuffs = 23,
- kCSTimeEventSetupRestPos = 24, // TODO
+ kCSTimeEventHelperSetupRestPos = 24,
kCSTimeEventUnknown25 = 25,
kCSTimeEventUnknown26 = 26,
kCSTimeEventRemoveChar = 27,
@@ -84,9 +84,9 @@ enum {
kCSTimeEventUnknown39 = 39,
kCSTimeEventWait = 40,
kCSTimeEventSpeech = 41,
- kCSTimeEventUnknown42 = 42,
+ kCSTimeEventCharSetState = 42,
kCSTimeEventUnknown43 = 43,
- kCSTimeEventCharSetupRestPos = 44, // TODO
+ kCSTimeEventCharSetupRestPos = 44,
kCSTimeEventCharStopAmbients = 45,
kCSTimeEventCharRestartAmbients = 46,
kCSTimeEventStopEnvironmentSound = 47,
@@ -95,7 +95,7 @@ enum {
kCSTimeEventStartEnvironmentSound = 50,
kCSTimeEventPreloadSound = 51,
kCSTimeEventPlayPreloadedSound = 52,
- kCSTimeEventUnknown53 = 53,
+ kCSTimeEventSetInsertBefore = 53,
kCSTimeEventSetEnvironmentSound = 54,
kCSTimeEventCharSomeNIS55 = 55,
kCSTimeEventUnknown56 = 56,
@@ -103,7 +103,7 @@ enum {
kCSTimeEventCharSurfAndFlap = 58,
kCSTimeEventInitScene = 59,
kCSTimeEventFadeDown = 60,
- kCSTimeEventCharSomeNIS61 = 61,
+ kCSTimeEventEndOfCase = 61,
kCSTimeEventCharPlaySimultaneousAnim = 62,
kCSTimeEventUnused63 = 63,
kCSTimeEventUnknown64 = 64,