aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/stubs.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2011-12-06 15:58:20 +0200
committerFilippos Karapetis2011-12-06 15:58:20 +0200
commitb201f4f55dca062ef501fa5adead0c2408ee8e1c (patch)
treee1c539ad29e1ce23ba81fe247de1a87053ccc3b2 /engines/dreamweb/stubs.cpp
parentc11ff14f46cb2457a431d5e2d5604fca74794803 (diff)
downloadscummvm-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.cpp63
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 */