aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,