DREAMWEB: 'openeden', 'openlouis', 'openpoolboss', 'openryan', 'opensarters', 'openyourneighbour' ported to C++
This commit is contained in:
parent
2bda241f6f
commit
1bedd8bc18
6 changed files with 42 additions and 71 deletions
|
@ -405,8 +405,14 @@ generator = cpp(context, "DreamGen", blacklist = [
|
||||||
'obtoinv',
|
'obtoinv',
|
||||||
'oldtonames',
|
'oldtonames',
|
||||||
'onedigit',
|
'onedigit',
|
||||||
|
'openeden',
|
||||||
'openfile',
|
'openfile',
|
||||||
'openforsave',
|
'openforsave',
|
||||||
|
'openlouis',
|
||||||
|
'openpoolboss',
|
||||||
|
'openryan'
|
||||||
|
'opensarters',
|
||||||
|
'openyourneighbour',
|
||||||
'othersmoker',
|
'othersmoker',
|
||||||
'out22c',
|
'out22c',
|
||||||
'paltoendpal',
|
'paltoendpal',
|
||||||
|
|
|
@ -6240,16 +6240,6 @@ keyontv:
|
||||||
data.byte(kGetback) = 1;
|
data.byte(kGetback) = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DreamGenContext::openLouis() {
|
|
||||||
STACK_CHECK;
|
|
||||||
al = 5;
|
|
||||||
ah = 2;
|
|
||||||
cl = 3;
|
|
||||||
ch = 8;
|
|
||||||
enterCode();
|
|
||||||
data.byte(kGetback) = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DreamGenContext::nextColon() {
|
void DreamGenContext::nextColon() {
|
||||||
STACK_CHECK;
|
STACK_CHECK;
|
||||||
lookcolon:
|
lookcolon:
|
||||||
|
@ -6260,56 +6250,6 @@ lookcolon:
|
||||||
goto lookcolon;
|
goto lookcolon;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DreamGenContext::openYourNeighbour() {
|
|
||||||
STACK_CHECK;
|
|
||||||
al = 255;
|
|
||||||
ah = 255;
|
|
||||||
cl = 255;
|
|
||||||
ch = 255;
|
|
||||||
enterCode();
|
|
||||||
data.byte(kGetback) = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DreamGenContext::openRyan() {
|
|
||||||
STACK_CHECK;
|
|
||||||
al = 5;
|
|
||||||
ah = 1;
|
|
||||||
cl = 0;
|
|
||||||
ch = 6;
|
|
||||||
enterCode();
|
|
||||||
data.byte(kGetback) = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DreamGenContext::openPoolBoss() {
|
|
||||||
STACK_CHECK;
|
|
||||||
al = 5;
|
|
||||||
ah = 2;
|
|
||||||
cl = 2;
|
|
||||||
ch = 2;
|
|
||||||
enterCode();
|
|
||||||
data.byte(kGetback) = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DreamGenContext::openEden() {
|
|
||||||
STACK_CHECK;
|
|
||||||
al = 2;
|
|
||||||
ah = 8;
|
|
||||||
cl = 6;
|
|
||||||
ch = 5;
|
|
||||||
enterCode();
|
|
||||||
data.byte(kGetback) = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DreamGenContext::openSarters() {
|
|
||||||
STACK_CHECK;
|
|
||||||
al = 7;
|
|
||||||
ah = 8;
|
|
||||||
cl = 3;
|
|
||||||
ch = 3;
|
|
||||||
enterCode();
|
|
||||||
data.byte(kGetback) = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DreamGenContext::drawItAll() {
|
void DreamGenContext::drawItAll() {
|
||||||
STACK_CHECK;
|
STACK_CHECK;
|
||||||
createPanel();
|
createPanel();
|
||||||
|
|
|
@ -552,7 +552,6 @@ public:
|
||||||
void decide();
|
void decide();
|
||||||
void entryTexts();
|
void entryTexts();
|
||||||
void checkInput();
|
void checkInput();
|
||||||
void openSarters();
|
|
||||||
void putUnderCentre();
|
void putUnderCentre();
|
||||||
void checkObjectSize();
|
void checkObjectSize();
|
||||||
void deallocateMem();
|
void deallocateMem();
|
||||||
|
@ -612,7 +611,6 @@ public:
|
||||||
void dumpDiaryKeys();
|
void dumpDiaryKeys();
|
||||||
void disableSoundInt();
|
void disableSoundInt();
|
||||||
void priestText();
|
void priestText();
|
||||||
void openPoolBoss();
|
|
||||||
void usePlate();
|
void usePlate();
|
||||||
void lookInInterface();
|
void lookInInterface();
|
||||||
void loadSpeech();
|
void loadSpeech();
|
||||||
|
@ -624,7 +622,6 @@ public:
|
||||||
void printOuterMon();
|
void printOuterMon();
|
||||||
void showDecisions();
|
void showDecisions();
|
||||||
void removeObFromInv();
|
void removeObFromInv();
|
||||||
void openYourNeighbour();
|
|
||||||
void heavy();
|
void heavy();
|
||||||
void useKey();
|
void useKey();
|
||||||
void lockLightOn();
|
void lockLightOn();
|
||||||
|
@ -727,7 +724,6 @@ public:
|
||||||
void destSelect();
|
void destSelect();
|
||||||
void lastDest();
|
void lastDest();
|
||||||
void removeFreeObject();
|
void removeFreeObject();
|
||||||
void openLouis();
|
|
||||||
void lookAtCard();
|
void lookAtCard();
|
||||||
void helicopter();
|
void helicopter();
|
||||||
void getEitherAd();
|
void getEitherAd();
|
||||||
|
@ -776,7 +772,6 @@ public:
|
||||||
void selectOpenOb();
|
void selectOpenOb();
|
||||||
void useGun();
|
void useGun();
|
||||||
void autoAppear();
|
void autoAppear();
|
||||||
void openRyan();
|
|
||||||
void useFullCart();
|
void useFullCart();
|
||||||
void newPlace();
|
void newPlace();
|
||||||
void useCardReader1();
|
void useCardReader1();
|
||||||
|
@ -798,7 +793,6 @@ public:
|
||||||
void initialMonCols();
|
void initialMonCols();
|
||||||
void checkForShake();
|
void checkForShake();
|
||||||
void useButtonA();
|
void useButtonA();
|
||||||
void openEden();
|
|
||||||
void execCommand();
|
void execCommand();
|
||||||
void obsThatDoThings();
|
void obsThatDoThings();
|
||||||
void updateSymbolBot();
|
void updateSymbolBot();
|
||||||
|
|
|
@ -75,10 +75,6 @@ void DreamGenContext::showKeypad() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void DreamGenContext::enterCode() {
|
|
||||||
enterCode(al, ah, cl, ch);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool DreamGenContext::isItRight(uint8 digit0, uint8 digit1, uint8 digit2, uint8 digit3) {
|
bool DreamGenContext::isItRight(uint8 digit0, uint8 digit1, uint8 digit2, uint8 digit3) {
|
||||||
|
|
||||||
return digit0 == data.byte(kPresslist+0) && digit1 == data.byte(kPresslist+1)
|
return digit0 == data.byte(kPresslist+0) && digit1 == data.byte(kPresslist+1)
|
||||||
|
|
|
@ -462,7 +462,6 @@
|
||||||
void addToPressList();
|
void addToPressList();
|
||||||
bool isItRight(uint8 digit0, uint8 digit1, uint8 digit2, uint8 digit3);
|
bool isItRight(uint8 digit0, uint8 digit1, uint8 digit2, uint8 digit3);
|
||||||
void enterCode(uint8 digit0, uint8 digit1, uint8 digit2, uint8 digit3);
|
void enterCode(uint8 digit0, uint8 digit1, uint8 digit2, uint8 digit3);
|
||||||
void enterCode();
|
|
||||||
unsigned int scanForNames();
|
unsigned int scanForNames();
|
||||||
void doLoad(int slot);
|
void doLoad(int slot);
|
||||||
void loadOld();
|
void loadOld();
|
||||||
|
@ -513,5 +512,11 @@
|
||||||
void selectSlot2();
|
void selectSlot2();
|
||||||
void blank();
|
void blank();
|
||||||
void allPointer();
|
void allPointer();
|
||||||
|
void openYourNeighbour();
|
||||||
|
void openRyan();
|
||||||
|
void openPoolBoss();
|
||||||
|
void openEden();
|
||||||
|
void openSarters();
|
||||||
|
void openLouis();
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -490,5 +490,35 @@ void DreamGenContext::callEdensDLift() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DreamGenContext::openYourNeighbour() {
|
||||||
|
enterCode(255, 255, 255, 255);
|
||||||
|
data.byte(kGetback) = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DreamGenContext::openRyan() {
|
||||||
|
enterCode(5, 1, 0, 6);
|
||||||
|
data.byte(kGetback) = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DreamGenContext::openPoolBoss() {
|
||||||
|
enterCode(5, 2, 2, 2);
|
||||||
|
data.byte(kGetback) = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DreamGenContext::openEden() {
|
||||||
|
enterCode(2, 8, 6, 5);
|
||||||
|
data.byte(kGetback) = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DreamGenContext::openSarters() {
|
||||||
|
enterCode(7, 8, 3, 3);
|
||||||
|
data.byte(kGetback) = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DreamGenContext::openLouis() {
|
||||||
|
enterCode(5, 2, 3, 8);
|
||||||
|
data.byte(kGetback) = 1;
|
||||||
|
}
|
||||||
|
|
||||||
} /*namespace dreamgen */
|
} /*namespace dreamgen */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue