MOHAWK: Implement kCSTimeEventCharSomeNIS55.

svn-id: r55445
This commit is contained in:
Alyssa Milburn 2011-01-22 21:22:12 +00:00
parent 00cabdad11
commit bfe0307300
2 changed files with 25 additions and 0 deletions

View File

@ -310,6 +310,24 @@ void MohawkEngine_CSTime::eventIdle() {
}
break;
case kCSTimeEventCharSomeNIS55:
// This is like kCSTimeEventCharPlayNIS, only using a different flag variable.
if (_processingNIS55) {
CSTimeChar *chr = _case->getCurrScene()->getChar(event.param1);
if (chr->NISIsDone()) {
chr->removeNIS();
_processingNIS55 = false;
chr->setupAmbientAnims(true);
_events.pop_front();
processEvent = false;
} else {
done = true;
}
} else {
advanceQueue = false;
}
break;
default:
break;
}
@ -350,6 +368,7 @@ bool MohawkEngine_CSTime::NISIsRunning() {
void MohawkEngine_CSTime::reset() {
_NISRunning = false;
_processingNIS55 = false;
_lastTimeout = 0xffffffff;
_processingEvent = false;
}
@ -531,6 +550,11 @@ void MohawkEngine_CSTime::triggerEvent(CSTimeEvent &event) {
// FIXME
break;
case kCSTimeEventCharSomeNIS55:
_processingNIS55 = true;
_case->getCurrScene()->getChar(event.param1)->playNIS(event.param2);
break;
case kCSTimeEventUpdateBubble:
switch (event.param2) {
case 0:

View File

@ -178,6 +178,7 @@ private:
uint16 _nextSceneId;
bool _processingEvent;
bool _processingNIS55;
bool _NISRunning;
uint32 _lastTimeout;
void reset();