aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/dreamgen.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2011-12-06 17:46:50 +0200
committerFilippos Karapetis2011-12-06 17:46:50 +0200
commitf2829a6a6c033c981514d233119648731ee78310 (patch)
tree256bd7f7d7378faa8d4a7e92ed94e162ec07f125 /engines/dreamweb/dreamgen.cpp
parentddddce37288c0b72a1194049ce2b882de17cfd3d (diff)
downloadscummvm-rg350-f2829a6a6c033c981514d233119648731ee78310.tar.gz
scummvm-rg350-f2829a6a6c033c981514d233119648731ee78310.tar.bz2
scummvm-rg350-f2829a6a6c033c981514d233119648731ee78310.zip
DREAMWEB: 'useelvdoor', 'useobject', 'useplinth' ported to C++
Diffstat (limited to 'engines/dreamweb/dreamgen.cpp')
-rw-r--r--engines/dreamweb/dreamgen.cpp92
1 files changed, 0 insertions, 92 deletions
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp
index 8b7375302e..8f3d73e4e6 100644
--- a/engines/dreamweb/dreamgen.cpp
+++ b/engines/dreamweb/dreamgen.cpp
@@ -5026,30 +5026,6 @@ void DreamGenContext::triggerMessage() {
data.byte(kLasttrigger) = 0;
}
-void DreamGenContext::useObject() {
- STACK_CHECK;
- data.byte(kWithobject) = 255;
- _cmp(data.byte(kCommandtype), 229);
- if (flags.z())
- goto alreadyuse;
- data.byte(kCommandtype) = 229;
- bl = data.byte(kCommand);
- bh = data.byte(kObjecttype);
- al = 51;
- commandWithOb();
-alreadyuse:
- ax = data.word(kMousebutton);
- _cmp(ax, data.word(kOldbutton));
- if (flags.z())
- return /* (nouse) */;
- _and(ax, 1);
- if (!flags.z())
- goto douse;
- return;
-douse:
- useRoutine();
-}
-
void DreamGenContext::runTap() {
STACK_CHECK;
_cmp(data.byte(kWithobject), 255);
@@ -5208,39 +5184,6 @@ alreadyfull:
putBackObStuff();
}
-void DreamGenContext::usePlinth() {
- STACK_CHECK;
- _cmp(data.byte(kWithobject), 255);
- if (!flags.z())
- goto plinthwith;
- withWhat();
- return;
-plinthwith:
- al = data.byte(kWithobject);
- ah = data.byte(kWithtype);
- cl = 'D';
- ch = 'K';
- dl = 'E';
- dh = 'Y';
- compare();
- if (flags.z())
- goto isrightkey;
- showFirstUse();
- putBackObStuff();
- return;
-isrightkey:
- _inc(data.byte(kProgresspoints));
- showSecondUse();
- data.word(kWatchingtime) = 220;
- data.word(kReeltowatch) = 0;
- data.word(kEndwatchreel) = 104;
- data.byte(kWatchspeed) = 1;
- data.byte(kSpeedcount) = 1;
- data.byte(kGetback) = 1;
- al = data.byte(kRoomafterdream);
- data.byte(kNewlocation) = al;
-}
-
void DreamGenContext::chewy() {
STACK_CHECK;
showFirstUse();
@@ -6322,41 +6265,6 @@ axeondoor:
data.byte(kGetback) = 1;
}
-void DreamGenContext::useElvDoor() {
- STACK_CHECK;
- _cmp(data.byte(kWithobject), 255);
- if (!flags.z())
- goto gotdoorwith;
- withWhat();
- return;
-gotdoorwith:
- al = data.byte(kWithobject);
- ah = data.byte(kWithtype);
- cl = 'A';
- ch = 'X';
- dl = 'E';
- dh = 'D';
- compare();
- if (flags.z())
- goto axeondoor;
- al = 14;
- cx = 300;
- showPuzText();
- putBackObStuff();
- return;
-axeondoor:
- al = 15;
- cx = 300;
- showPuzText();
- _inc(data.byte(kProgresspoints));
- data.word(kWatchingtime) = 46*2;
- data.word(kReeltowatch) = 31;
- data.word(kEndwatchreel) = 77;
- data.byte(kWatchspeed) = 1;
- data.byte(kSpeedcount) = 1;
- data.byte(kGetback) = 1;
-}
-
void DreamGenContext::withWhat() {
STACK_CHECK;
createPanel();