aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/dreamgen.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2011-12-06 03:20:30 +0200
committerFilippos Karapetis2011-12-06 03:20:30 +0200
commite1a53cc455c79ce72415581d01aeacc86ee9a2eb (patch)
tree76a3a649224fe7a44b0b569b6391f1df31d88292 /engines/dreamweb/dreamgen.cpp
parentf50fd3b7f93a8425f1a22e85b2012bca933252db (diff)
downloadscummvm-rg350-e1a53cc455c79ce72415581d01aeacc86ee9a2eb.tar.gz
scummvm-rg350-e1a53cc455c79ce72415581d01aeacc86ee9a2eb.tar.bz2
scummvm-rg350-e1a53cc455c79ce72415581d01aeacc86ee9a2eb.zip
DREAMWEB: 'calledensdlift', 'calledenslift', 'sitdowninbar', 'trapdoor', 'usebalcony', 'usechurchhole', 'usecoveredbox', 'useelevator2', 'useelevator5', 'usedryer', 'userailing', 'usewindow', 'wearwatch', 'wearshades' ported to C++
Diffstat (limited to 'engines/dreamweb/dreamgen.cpp')
-rw-r--r--engines/dreamweb/dreamgen.cpp215
1 files changed, 0 insertions, 215 deletions
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp
index c1a4a41138..d5bf1977d0 100644
--- a/engines/dreamweb/dreamgen.cpp
+++ b/engines/dreamweb/dreamgen.cpp
@@ -6127,30 +6127,6 @@ openbox:
data.byte(kGetback) = 1;
}
-void DreamGenContext::useCoveredBox() {
- STACK_CHECK;
- _inc(data.byte(kProgresspoints));
- showFirstUse();
- data.word(kWatchingtime) = 50;
- data.word(kReeltowatch) = 41;
- data.word(kEndwatchreel) = 66;
- data.byte(kWatchspeed) = 1;
- data.byte(kSpeedcount) = 1;
- data.byte(kGetback) = 1;
-}
-
-void DreamGenContext::useRailing() {
- STACK_CHECK;
- showFirstUse();
- data.word(kWatchingtime) = 80;
- data.word(kReeltowatch) = 0;
- data.word(kEndwatchreel) = 30;
- data.byte(kWatchspeed) = 1;
- data.byte(kSpeedcount) = 1;
- data.byte(kGetback) = 1;
- data.byte(kMandead) = 4;
-}
-
void DreamGenContext::useOpenBox() {
STACK_CHECK;
_cmp(data.byte(kWithobject), 255);
@@ -6203,69 +6179,6 @@ openboxwrong:
putBackObStuff();
}
-void DreamGenContext::wearWatch() {
- STACK_CHECK;
- _cmp(data.byte(kWatchon), 1);
- if (flags.z())
- goto wearingwatch;
- showFirstUse();
- data.byte(kWatchon) = 1;
- data.byte(kGetback) = 1;
- getAnyAd();
- makeWorn();
- return;
-wearingwatch:
- showSecondUse();
- putBackObStuff();
-}
-
-void DreamGenContext::wearShades() {
- STACK_CHECK;
- _cmp(data.byte(kShadeson), 1);
- if (flags.z())
- goto wearingshades;
- data.byte(kShadeson) = 1;
- showFirstUse();
- data.byte(kGetback) = 1;
- getAnyAd();
- makeWorn();
- return;
-wearingshades:
- showSecondUse();
- putBackObStuff();
-}
-
-void DreamGenContext::sitDownInBar() {
- STACK_CHECK;
- _cmp(data.byte(kWatchmode), -1);
- if (!flags.z())
- goto satdown;
- showFirstUse();
- data.word(kWatchingtime) = 50;
- data.word(kReeltowatch) = 55;
- data.word(kEndwatchreel) = 71;
- data.word(kReeltohold) = 73;
- data.word(kEndofholdreel) = 83;
- data.byte(kWatchspeed) = 1;
- data.byte(kSpeedcount) = 1;
- data.byte(kGetback) = 1;
- return;
-satdown:
- showSecondUse();
- putBackObStuff();
-}
-
-void DreamGenContext::useChurchHole() {
- STACK_CHECK;
- showFirstUse();
- data.byte(kGetback) = 1;
- data.word(kWatchingtime) = 28;
- data.word(kReeltowatch) = 13;
- data.word(kEndwatchreel) = 26;
- data.byte(kWatchspeed) = 1;
- data.byte(kSpeedcount) = 1;
-}
-
void DreamGenContext::useHole() {
STACK_CHECK;
_cmp(data.byte(kWithobject), 255);
@@ -6374,14 +6287,6 @@ keyontv:
data.byte(kGetback) = 1;
}
-void DreamGenContext::useDryer() {
- STACK_CHECK;
- al = 12;
- playChannel1();
- showFirstUse();
- data.byte(kGetback) = 1;
-}
-
void DreamGenContext::openLouis() {
STACK_CHECK;
al = 5;
@@ -6412,53 +6317,6 @@ void DreamGenContext::openYourNeighbour() {
data.byte(kGetback) = 1;
}
-void DreamGenContext::useWindow() {
- STACK_CHECK;
- _cmp(data.byte(kManspath), 6);
- if (!flags.z())
- goto notonbalc;
- _inc(data.byte(kProgresspoints));
- showFirstUse();
- data.byte(kNewlocation) = 29;
- data.byte(kGetback) = 1;
- return;
-notonbalc:
- showSecondUse();
- putBackObStuff();
-}
-
-void DreamGenContext::useBalcony() {
- STACK_CHECK;
- showFirstUse();
- al = 6;
- turnPathOn();
- al = 0;
- turnPathOff();
- al = 1;
- turnPathOff();
- al = 2;
- turnPathOff();
- al = 3;
- turnPathOff();
- al = 4;
- turnPathOff();
- al = 5;
- turnPathOff();
- _inc(data.byte(kProgresspoints));
- data.byte(kManspath) = 6;
- data.byte(kDestination) = 6;
- data.byte(kFinaldest) = 6;
- findXYFromPath();
- switchRyanOff();
- data.byte(kResetmanxy) = 1;
- data.word(kWatchingtime) = 30*2;
- data.word(kReeltowatch) = 183;
- data.word(kEndwatchreel) = 212;
- data.byte(kWatchspeed) = 1;
- data.byte(kSpeedcount) = 1;
- data.byte(kGetback) = 1;
-}
-
void DreamGenContext::openRyan() {
STACK_CHECK;
al = 5;
@@ -6593,45 +6451,6 @@ dograf:
putBackObStuff();
}
-void DreamGenContext::trapDoor() {
- STACK_CHECK;
- _inc(data.byte(kProgresspoints));
- showFirstUse();
- switchRyanOff();
- data.word(kWatchingtime) = 20*2;
- data.word(kReeltowatch) = 181;
- data.word(kEndwatchreel) = 197;
- data.byte(kNewlocation) = 26;
- data.byte(kWatchspeed) = 1;
- data.byte(kSpeedcount) = 1;
- data.byte(kGetback) = 1;
-}
-
-void DreamGenContext::callEdensLift() {
- STACK_CHECK;
- showFirstUse();
- data.byte(kCounttoopen) = 8;
- data.byte(kGetback) = 1;
- al = 2;
- turnPathOn();
-}
-
-void DreamGenContext::callEdensDLift() {
- STACK_CHECK;
- _cmp(data.byte(kLiftflag), 1);
- if (flags.z())
- goto edensdhere;
- showFirstUse();
- data.byte(kCounttoopen) = 8;
- data.byte(kGetback) = 1;
- al = 2;
- turnPathOn();
- return;
-edensdhere:
- showSecondUse();
- putBackObStuff();
-}
-
void DreamGenContext::usePoolReader() {
STACK_CHECK;
_cmp(data.byte(kWithobject), 255);
@@ -7179,40 +6998,6 @@ havecutwire:
data.byte(kGetback) = 1;
}
-void DreamGenContext::useElevator2() {
- STACK_CHECK;
- _cmp(data.byte(kLocation), 23);
- if (flags.z())
- goto inpoolhall;
- showFirstUse();
- data.byte(kNewlocation) = 23;
- data.byte(kCounttoclose) = 20;
- data.byte(kCounttoopen) = 0;
- data.word(kWatchingtime) = 80;
- data.byte(kGetback) = 1;
- return;
-inpoolhall:
- showFirstUse();
- data.byte(kNewlocation) = 31;
- data.byte(kCounttoclose) = 20;
- data.byte(kCounttoopen) = 0;
- data.word(kWatchingtime) = 80;
- data.byte(kGetback) = 1;
-}
-
-void DreamGenContext::useElevator5() {
- STACK_CHECK;
- al = 4;
- placeSetObject();
- al = 0;
- removeSetObject();
- data.byte(kNewlocation) = 20;
- data.word(kWatchingtime) = 80;
- data.byte(kLiftflag) = 1;
- data.byte(kCounttoclose) = 8;
- data.byte(kGetback) = 1;
-}
-
void DreamGenContext::useKey() {
STACK_CHECK;
_cmp(data.byte(kLocation), 5);