diff options
author | Filippos Karapetis | 2011-12-06 15:58:20 +0200 |
---|---|---|
committer | Filippos Karapetis | 2011-12-06 15:58:20 +0200 |
commit | b201f4f55dca062ef501fa5adead0c2408ee8e1c (patch) | |
tree | e1c539ad29e1ce23ba81fe247de1a87053ccc3b2 /engines/dreamweb/stubs.cpp | |
parent | c11ff14f46cb2457a431d5e2d5604fca74794803 (diff) | |
download | scummvm-rg350-b201f4f55dca062ef501fa5adead0c2408ee8e1c.tar.gz scummvm-rg350-b201f4f55dca062ef501fa5adead0c2408ee8e1c.tar.bz2 scummvm-rg350-b201f4f55dca062ef501fa5adead0c2408ee8e1c.zip |
DREAMWEB: 'clearpalette', 'deleverything', 'errormessage1', 'errormessage2', 'errormessage3', 'train' ported to C++
Diffstat (limited to 'engines/dreamweb/stubs.cpp')
-rw-r--r-- | engines/dreamweb/stubs.cpp | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp index 0efdd1884a..108fe2dd5d 100644 --- a/engines/dreamweb/stubs.cpp +++ b/engines/dreamweb/stubs.cpp @@ -3615,4 +3615,67 @@ void DreamGenContext::obsThatDoThings() { } } +void DreamGenContext::delEverything() { + if (data.byte(kMapysize) + data.word(kMapoffsety) == 182) { + mapToPanel(); + } else { + // Big room + data.byte(kMapysize) -= 8; + mapToPanel(); + data.byte(kMapysize) += 8; + } +} + +void DreamGenContext::errorMessage1() { + delPointer(); + printMessage(76, 21, 58, 240, (240 & 1)); + readMouse(); + showPointer(); + workToScreen(); + delPointer(); + hangOnP(50); + showPanel(); + showMan(); + examIcon(); + readMouse(); + useOpened(); + showPointer(); + workToScreen(); + delPointer(); +} + +void DreamGenContext::errorMessage2() { + data.byte(kCommandtype) = 255; + delPointer(); + printMessage(76, 21, 59, 240, (240 & 1)); + readMouse(); + showPointer(); + workToScreen(); + delPointer(); + hangOnP(50); + showPanel(); + showMan(); + examIcon(); + readMouse(); + useOpened(); + showPointer(); + workToScreen(); + delPointer(); +} + +void DreamGenContext::errorMessage3() { + delPointer(); + printMessage(76, 21, 60, 240, (240 & 1)); + workToScreenM(); + hangOnP(50); + showPanel(); + showMan(); + examIcon(); + readMouse(); + useOpened(); + showPointer(); + workToScreen(); + delPointer(); +} + } /*namespace dreamgen */ |