diff options
author | Filippos Karapetis | 2011-12-08 00:04:08 +0200 |
---|---|---|
committer | Filippos Karapetis | 2011-12-08 00:04:55 +0200 |
commit | 61c2331af3c870c10f7e8c37b152e16915d1b32a (patch) | |
tree | 9d817e05e60abc0385b79da004bb85cfc644349a /engines/dreamweb/people.cpp | |
parent | a6ab1738243712bbc1db8a10f834542cd9d94c37 (diff) | |
download | scummvm-rg350-61c2331af3c870c10f7e8c37b152e16915d1b32a.tar.gz scummvm-rg350-61c2331af3c870c10f7e8c37b152e16915d1b32a.tar.bz2 scummvm-rg350-61c2331af3c870c10f7e8c37b152e16915d1b32a.zip |
DREAMWEB: 'priest' and 'priesttext' ported to C++
Diffstat (limited to 'engines/dreamweb/people.cpp')
-rw-r--r-- | engines/dreamweb/people.cpp | 35 |
1 files changed, 32 insertions, 3 deletions
diff --git a/engines/dreamweb/people.cpp b/engines/dreamweb/people.cpp index 18a2ff4478..d53786c369 100644 --- a/engines/dreamweb/people.cpp +++ b/engines/dreamweb/people.cpp @@ -49,7 +49,7 @@ static void (DreamGenContext::*reelCallbacks[57])() = { &DreamGenContext::introMonks1, NULL, &DreamGenContext::introMonks2, NULL, &DreamGenContext::monkAndRyan, &DreamGenContext::endGameSeq, - &DreamGenContext::priest, NULL, + NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, @@ -81,7 +81,7 @@ static void (DreamGenContext::*reelCallbacksCPP[57])(ReelRoutine &) = { /*&DreamGenContext::intromonks1*/NULL, &DreamGenContext::candles, /*&DreamGenContext::intromonks2*/NULL, &DreamGenContext::handClap, /*&DreamGenContext::monkAndRyan*/NULL, /*&DreamGenContext::endGameSeq*/NULL, - /*&DreamGenContext::priest*/NULL, &DreamGenContext::madman, + &DreamGenContext::priest, &DreamGenContext::madman, &DreamGenContext::madmansTelly, &DreamGenContext::alleyBarkSound, &DreamGenContext::foghornSound, &DreamGenContext::carParkDrip, &DreamGenContext::carParkDrip, &DreamGenContext::carParkDrip, @@ -594,7 +594,6 @@ void DreamGenContext::louisChair(ReelRoutine &routine) { } void DreamGenContext::bossMan(ReelRoutine &routine) { - checkSpeed(); if (checkSpeed(routine)) { uint16 nextReelPointer = routine.reelPointer() + 1; @@ -620,4 +619,34 @@ void DreamGenContext::bossMan(ReelRoutine &routine) { data.byte(kTalkedtoboss) = 1; } +void DreamGenContext::priest(ReelRoutine &routine) { + if (routine.reelPointer() == 8) + return; // priestspoken + + data.byte(kPointermode) = 0; + data.word(kWatchingtime) = 2; + + if (checkSpeed(routine)) { + routine.incReelPointer(); + push(es); + push(bx); + priestText(routine); + bx = pop(); + es = pop(); + } +} + +void DreamGenContext::priestText(ReelRoutine &routine) { + uint16 reel = routine.reelPointer(); + if (reel < 2 || reel >= 7 || (reel & 1)) + return; // nopriesttext + + al = ((reel & 0xFF) >> 1) + 50; + bl = 72; + bh = 80; + cx = 54; + dx = 1; + setupTimedUse(); +} + } // End of namespace DreamGen |