DREAMWEB: Move many use-related functions to DreamBase

This commit is contained in:
Willem Jan Palenstijn 2011-12-24 13:39:27 +01:00
parent efb9057dda
commit bcf789274f
6 changed files with 254 additions and 254 deletions

View file

@ -1571,12 +1571,12 @@ generator = cpp(context, "DreamGen", blacklist = [
'signon' : 'signOn', 'signon' : 'signOn',
'singlekey' : 'singleKey', 'singlekey' : 'singleKey',
'sitdowninbar' : 'sitDownInBar', 'sitdowninbar' : 'sitDownInBar',
'slabdoora' : 'sLabDoorA', 'slabdoora' : 'slabDoorA',
'slabdoorb' : 'sLabDoorB', 'slabdoorb' : 'slabDoorB',
'slabdoorc' : 'sLabDoorC', 'slabdoorc' : 'slabDoorC',
'slabdoord' : 'sLabDoorD', 'slabdoord' : 'slabDoorD',
'slabdoore' : 'sLabDoorE', 'slabdoore' : 'slabDoorE',
'slabdoorf' : 'sLabDoorF', 'slabdoorf' : 'slabDoorF',
'smallcandle' : 'smallCandle', 'smallcandle' : 'smallCandle',
'smokebloke' : 'smokeBloke', 'smokebloke' : 'smokeBloke',
'soldier1' : 'soldier1', 'soldier1' : 'soldier1',
@ -1668,7 +1668,7 @@ generator = cpp(context, "DreamGen", blacklist = [
'userailing' : 'useRailing', 'userailing' : 'useRailing',
'useroutine' : 'useRoutine', 'useroutine' : 'useRoutine',
'useshield' : 'useShield', 'useshield' : 'useShield',
'useslab' : 'useSLab', 'useslab' : 'useSlab',
'usestereo' : 'useStereo', 'usestereo' : 'useStereo',
'usetempcharset' : 'useTempCharset', 'usetempcharset' : 'useTempCharset',
'usetext' : 'useText', 'usetext' : 'useText',

View file

@ -144,6 +144,7 @@ public:
void dumpSymbol(); void dumpSymbol();
void dumpSymBox(); void dumpSymBox();
void quitSymbol(); void quitSymbol();
void enterCode(uint8 digit0, uint8 digit1, uint8 digit2, uint8 digit3);
// from monitor.cpp // from monitor.cpp
void input(); void input();
@ -515,6 +516,17 @@ public:
void startup(); void startup();
void atmospheres(); void atmospheres();
bool objectMatches(void *object, const char *id); bool objectMatches(void *object, const char *id);
void checkFolderCoords();
void nextFolder();
void lastFolder();
void lookAtCard();
void obsThatDoThings();
void describeOb();
void putBackObStuff();
void reExFromOpen();
void showDiaryPage();
void showDiaryKeys();
void dumpDiaryKeys();
// from use.cpp // from use.cpp
void placeFreeObject(uint8 index); void placeFreeObject(uint8 index);
@ -523,6 +535,81 @@ public:
void withWhat(); void withWhat();
uint16 checkInside(uint16 command, uint16 type); uint16 checkInside(uint16 command, uint16 type);
void showPuzText(uint16 command, uint16 count); void showPuzText(uint16 command, uint16 count);
void useText(const uint8 *string);
void showFirstUse();
void showSecondUse();
void viewFolder();
void edensCDPlayer();
void hotelBell();
void playGuitar();
void useElevator2();
void useElevator3();
void useElevator4();
void useElevator5();
void useHatch();
void wheelSound();
void callHotelLift();
void useShield();
void useCoveredBox();
void useRailing();
void useChurchHole();
void sitDownInBar();
void useBalcony();
void useWindow();
void trapDoor();
void useDryer();
void callEdensDLift();
void callEdensLift();
void openYourNeighbour();
void openRyan();
void openPoolBoss();
void openEden();
void openSarters();
void openLouis();
void useWall();
void useChurchGate();
void useLadder();
void useLadderB();
bool defaultUseHandler(const char *id);
void slabDoorA();
void slabDoorB();
void slabDoorC();
void slabDoorE();
void slabDoorD();
void slabDoorF();
void useGun();
void useFullCart();
void useClearBox();
void openTVDoor();
void usePlate();
void usePlinth();
void useElvDoor();
void useWinch();
void useCart();
void useHole();
void openHotelDoor();
void openHotelDoor2();
void grafittiDoor();
void useCardReader1();
void useCardReader2();
void useCardReader3();
void usePoolReader();
void useLighter();
void useWire();
void openTomb();
void hotelControl();
void useCooker();
void useDiary();
void useControl();
void useSlab();
void usePipe();
void useOpenBox();
void runTap();
void useAxe();
void useHandle();
void useAltar();
void notHeldError();
void useCashCard();
// from vgafades.cpp // from vgafades.cpp
void clearStartPal(); void clearStartPal();

View file

@ -92,7 +92,7 @@ void DreamBase::addToPressList() {
++data.word(kPresspointer); ++data.word(kPresspointer);
} }
void DreamGenContext::enterCode(uint8 digit0, uint8 digit1, uint8 digit2, uint8 digit3) { void DreamBase::enterCode(uint8 digit0, uint8 digit1, uint8 digit2, uint8 digit3) {
RectWithCallback<DreamBase> keypadList[] = { RectWithCallback<DreamBase> keypadList[] = {
{ kKeypadx+9,kKeypadx+30,kKeypady+9,kKeypady+22,&DreamBase::buttonOne }, { kKeypadx+9,kKeypadx+30,kKeypady+9,kKeypady+22,&DreamBase::buttonOne },
{ kKeypadx+31,kKeypadx+52,kKeypady+9,kKeypady+22,&DreamBase::buttonTwo }, { kKeypadx+31,kKeypadx+52,kKeypady+9,kKeypady+22,&DreamBase::buttonTwo },

View file

@ -2438,18 +2438,18 @@ const uint8 *DreamBase::getTextInFile1(uint16 index) {
return string; return string;
} }
void DreamGenContext::checkFolderCoords() { void DreamBase::checkFolderCoords() {
RectWithCallback<DreamGenContext> folderList[] = { RectWithCallback<DreamBase> folderList[] = {
{ 280,320,160,200, &DreamBase::quitKey }, { 280,320,160,200, &DreamBase::quitKey },
{ 143,300,6,194, &DreamGenContext::nextFolder }, { 143,300,6,194, &DreamBase::nextFolder },
{ 0,143,6,194, &DreamGenContext::lastFolder }, { 0,143,6,194, &DreamBase::lastFolder },
{ 0,320,0,200, &DreamBase::blank }, { 0,320,0,200, &DreamBase::blank },
{ 0xFFFF,0,0,0, 0 } { 0xFFFF,0,0,0, 0 }
}; };
checkCoords(folderList); checkCoords(folderList);
} }
void DreamGenContext::nextFolder() { void DreamBase::nextFolder() {
if (data.byte(kFolderpage) == 12) { if (data.byte(kFolderpage) == 12) {
blank(); blank();
return; return;
@ -2469,7 +2469,7 @@ void DreamGenContext::nextFolder() {
} }
} }
void DreamGenContext::lastFolder() { void DreamBase::lastFolder() {
if (data.byte(kFolderpage) == 0) { if (data.byte(kFolderpage) == 0) {
blank(); blank();
return; return;
@ -2885,7 +2885,7 @@ void DreamBase::openInv() {
data.byte(kCommandtype) = 255; data.byte(kCommandtype) = 255;
} }
void DreamGenContext::obsThatDoThings() { void DreamBase::obsThatDoThings() {
if (!compare(data.byte(kCommand), data.byte(kObjecttype), "MEMB")) if (!compare(data.byte(kCommand), data.byte(kObjecttype), "MEMB"))
return; // notlouiscard return; // notlouiscard
@ -2895,7 +2895,7 @@ void DreamGenContext::obsThatDoThings() {
} }
} }
void DreamGenContext::describeOb() { void DreamBase::describeOb() {
const uint8 *obText = getObTextStart(); const uint8 *obText = getObTextStart();
uint16 y = 92; uint16 y = 92;
if (data.byte(kForeignrelease) && data.byte(kObjecttype) == kSetObjectType1) if (data.byte(kForeignrelease) && data.byte(kObjecttype) == kSetObjectType1)
@ -2986,11 +2986,11 @@ void DreamGenContext::errorMessage3() {
delPointer(); delPointer();
} }
void DreamGenContext::reExFromOpen() { void DreamBase::reExFromOpen() {
} }
void DreamGenContext::putBackObStuff() { void DreamBase::putBackObStuff() {
createPanel(); createPanel();
showPanel(); showPanel();
showMan(); showMan();
@ -3614,7 +3614,7 @@ void DreamGenContext::updateSymbolBot() {
} }
} }
void DreamGenContext::showDiaryPage() { void DreamBase::showDiaryPage() {
showFrame(tempGraphics(), kDiaryx, kDiaryy, 0, 0); showFrame(tempGraphics(), kDiaryx, kDiaryy, 0, 0);
data.byte(kKerning) = 1; data.byte(kKerning) = 1;
useTempCharset(); useTempCharset();
@ -3631,7 +3631,7 @@ void DreamGenContext::showDiaryPage() {
useCharset1(); useCharset1();
} }
void DreamGenContext::dumpDiaryKeys() { void DreamBase::dumpDiaryKeys() {
if (data.byte(kPresscount) == 1) { if (data.byte(kPresscount) == 1) {
if (data.byte(kSartaindead) != 1 && data.byte(kDiarypage) == 5 && getLocation(6) != 1) { if (data.byte(kSartaindead) != 1 && data.byte(kDiarypage) == 5 && getLocation(6) != 1) {
// Add Sartain Industries note // Add Sartain Industries note
@ -3657,7 +3657,7 @@ void DreamGenContext::dumpDiaryKeys() {
multiDump(kDiaryx + 151, kDiaryy + 71, 16, 16); multiDump(kDiaryx + 151, kDiaryy + 71, 16, 16);
} }
void DreamGenContext::lookAtCard() { void DreamBase::lookAtCard() {
data.byte(kManisoffscreen) = 1; data.byte(kManisoffscreen) = 1;
getRidOfReels(); getRidOfReels();
loadKeypad(); loadKeypad();
@ -3710,7 +3710,7 @@ void DreamBase::clearChanges() {
memcpy(data.ptr(kRoomscango, 16), initialRoomsCanGo, 16); memcpy(data.ptr(kRoomscango, 16), initialRoomsCanGo, 16);
} }
void DreamGenContext::showDiaryKeys() { void DreamBase::showDiaryKeys() {
if (!data.byte(kPresscount)) if (!data.byte(kPresscount))
return; // nokeyatall return; // nokeyatall

View file

@ -119,7 +119,6 @@
} }
void findNextColon(); void findNextColon();
const uint8 *getObTextStartCPP(); const uint8 *getObTextStartCPP();
void useText(const uint8 *string);
void showCity(); void showCity();
uint16 getPersFrame(uint8 index); uint16 getPersFrame(uint8 index);
void convIcons(); void convIcons();
@ -153,67 +152,15 @@
void look(); void look();
void autoLook(); void autoLook();
void doLook(); void doLook();
void showFirstUse();
void showSecondUse();
void enterSymbol(); void enterSymbol();
void viewFolder();
void edensCDPlayer();
void hotelBell();
void playGuitar();
void callEdensDLift();
void callEdensLift();
void sitDownInBar();
void trapDoor();
void useBalcony();
void useChurchHole();
void useCoveredBox();
void useElevator1(); void useElevator1();
void useElevator2();
void useElevator3();
void useElevator4();
void useElevator5();
void useDryer();
void useRailing();
void useWindow();
void useHatch();
void useLighter();
void useSLab();
void usePipe();
void useOpenBox();
void useAxe();
void useKey(); void useKey();
void wheelSound();
void callHotelLift();
void useShield();
void useWall();
void useChurchGate();
void useFullCart();
void useClearBox();
void usePlate();
void usePlinth();
void useElvDoor();
void useObject(); void useObject();
void useWinch();
void useCardReader1();
void useCardReader2();
void useCardReader3();
void usePoolReader();
void useCooker();
void useWire();
void useControl();
void useHandle();
void useAltar();
bool defaultUseHandler(const char *id);
void openTVDoor();
void wearWatch(); void wearWatch();
void wearShades(); void wearShades();
void checkFolderCoords();
void nextFolder();
void lastFolder();
void singleKey(uint8 key, uint16 x, uint16 y); void singleKey(uint8 key, uint16 x, uint16 y);
uint8 nextSymbol(uint8 symbol); uint8 nextSymbol(uint8 symbol);
void showSymbol(); void showSymbol();
void enterCode(uint8 digit0, uint8 digit1, uint8 digit2, uint8 digit3);
void inventory(); void inventory();
void mainScreen(); void mainScreen();
void zoomOnOff(); void zoomOnOff();
@ -230,40 +177,15 @@
void afterIntroRoom(); void afterIntroRoom();
void gettingShot(); void gettingShot();
void allPointer(); void allPointer();
void openYourNeighbour();
void openRyan();
void openPoolBoss();
void openEden();
void openSarters();
void openLouis();
void useLadder();
void useLadderB();
void useCart();
void useTrainer(); void useTrainer();
void useHole();
void runTap();
void chewy(); void chewy();
void sLabDoorA();
void sLabDoorB();
void sLabDoorC();
void sLabDoorE();
void sLabDoorD();
void sLabDoorF();
void openHotelDoor();
void openHotelDoor2();
void grafittiDoor();
void openTomb();
void hotelControl();
void obsThatDoThings();
void delEverything(); void delEverything();
void errorMessage1(); void errorMessage1();
void errorMessage2(); void errorMessage2();
void errorMessage3(); void errorMessage3();
void reExFromOpen();
void nextDest(); void nextDest();
void lastDest(); void lastDest();
void destSelect(); void destSelect();
void putBackObStuff();
void moreTalk(); void moreTalk();
void redes(); void redes();
void selectLocation(); void selectLocation();
@ -276,7 +198,6 @@
void madmanRun(); void madmanRun();
void decide(); void decide();
void talk(); void talk();
void useDiary();
void hangOnPQ(); void hangOnPQ();
void showGun(); void showGun();
void endGame(); void endGame();
@ -292,10 +213,7 @@
void processTrigger(); void processTrigger();
void updateSymbolTop(); void updateSymbolTop();
void updateSymbolBot(); void updateSymbolBot();
void showDiaryPage();
void dumpDiaryKeys();
void runEndSeq(); void runEndSeq();
void lookAtCard();
bool execCommand(); bool execCommand();
void findExObject(); void findExObject();
uint16 findExObject(const char *id) { uint16 findExObject(const char *id) {
@ -305,20 +223,15 @@
bool isRyanHolding(const char *id) { bool isRyanHolding(const char *id) {
return DreamBase::isRyanHolding(id); return DreamBase::isRyanHolding(id);
} }
void describeOb();
void getOpenedSize(); void getOpenedSize();
byte getOpenedSizeCPP(); byte getOpenedSizeCPP();
void openOb(); void openOb();
void notHeldError();
void useGun();
void identifyOb(); void identifyOb();
void useCashCard();
void useStereo(); void useStereo();
void selectOb(); void selectOb();
void findInvPos(); void findInvPos();
uint16 findInvPosCPP(); uint16 findInvPosCPP();
void setPickup(); void setPickup();
void showDiaryKeys();
void showKeys(); void showKeys();
void getKeyAndLogo(); void getKeyAndLogo();
void deleteExObject(); void deleteExObject();

View file

@ -40,85 +40,85 @@ void DreamGenContext::useRoutine() {
static const UseListEntry kUseList[] = { static const UseListEntry kUseList[] = {
{ &DreamGenContext::useMon, "NETW" }, { &DreamGenContext::useMon, "NETW" },
{ &DreamGenContext::useElevator1, "ELVA" }, { &DreamGenContext::useElevator1, "ELVA" },
{ &DreamGenContext::useElevator2, "ELVB" }, { &DreamBase::useElevator2, "ELVB" },
{ &DreamGenContext::useElevator3, "ELVC" }, { &DreamBase::useElevator3, "ELVC" },
{ &DreamGenContext::useElevator4, "ELVE" }, { &DreamBase::useElevator4, "ELVE" },
{ &DreamGenContext::useElevator5, "ELVF" }, { &DreamBase::useElevator5, "ELVF" },
{ &DreamGenContext::useChurchGate, "CGAT" }, { &DreamBase::useChurchGate, "CGAT" },
{ &DreamGenContext::useStereo, "REMO" }, { &DreamGenContext::useStereo, "REMO" },
{ &DreamGenContext::useButtonA, "BUTA" }, { &DreamGenContext::useButtonA, "BUTA" },
{ &DreamGenContext::useWinch, "CBOX" }, { &DreamBase::useWinch, "CBOX" },
{ &DreamGenContext::useLighter, "LITE" }, { &DreamBase::useLighter, "LITE" },
{ &DreamGenContext::usePlate, "PLAT" }, { &DreamBase::usePlate, "PLAT" },
{ &DreamGenContext::useControl, "LIFT" }, { &DreamBase::useControl, "LIFT" },
{ &DreamGenContext::useWire, "WIRE" }, { &DreamBase::useWire, "WIRE" },
{ &DreamGenContext::useHandle, "HNDL" }, { &DreamBase::useHandle, "HNDL" },
{ &DreamGenContext::useHatch, "HACH" }, { &DreamBase::useHatch, "HACH" },
{ &DreamGenContext::useElvDoor, "DOOR" }, { &DreamBase::useElvDoor, "DOOR" },
{ &DreamGenContext::useCashCard, "CSHR" }, { &DreamBase::useCashCard, "CSHR" },
{ &DreamGenContext::useGun, "GUNA" }, { &DreamBase::useGun, "GUNA" },
{ &DreamGenContext::useCardReader1, "CRAA" }, { &DreamBase::useCardReader1, "CRAA" },
{ &DreamGenContext::useCardReader2, "CRBB" }, { &DreamBase::useCardReader2, "CRBB" },
{ &DreamGenContext::useCardReader3, "CRCC" }, { &DreamBase::useCardReader3, "CRCC" },
{ &DreamGenContext::sitDownInBar, "SEAT" }, { &DreamBase::sitDownInBar, "SEAT" },
{ &DreamGenContext::useMenu, "MENU" }, { &DreamGenContext::useMenu, "MENU" },
{ &DreamGenContext::useCooker, "COOK" }, { &DreamBase::useCooker, "COOK" },
{ &DreamGenContext::callHotelLift, "ELCA" }, { &DreamBase::callHotelLift, "ELCA" },
{ &DreamGenContext::callEdensLift, "EDCA" }, { &DreamBase::callEdensLift, "EDCA" },
{ &DreamGenContext::callEdensDLift, "DDCA" }, { &DreamBase::callEdensDLift, "DDCA" },
{ &DreamGenContext::useAltar, "ALTR" }, { &DreamBase::useAltar, "ALTR" },
{ &DreamGenContext::openHotelDoor, "LOKA" }, { &DreamBase::openHotelDoor, "LOKA" },
{ &DreamGenContext::openHotelDoor2, "LOKB" }, { &DreamBase::openHotelDoor2, "LOKB" },
{ &DreamGenContext::openLouis, "ENTA" }, { &DreamBase::openLouis, "ENTA" },
{ &DreamGenContext::openRyan, "ENTB" }, { &DreamBase::openRyan, "ENTB" },
{ &DreamGenContext::openPoolBoss, "ENTE" }, { &DreamBase::openPoolBoss, "ENTE" },
{ &DreamGenContext::openYourNeighbour, "ENTC" }, { &DreamBase::openYourNeighbour, "ENTC" },
{ &DreamGenContext::openEden, "ENTD" }, { &DreamBase::openEden, "ENTD" },
{ &DreamGenContext::openSarters, "ENTH" }, { &DreamBase::openSarters, "ENTH" },
{ &DreamGenContext::wearWatch, "WWAT" }, { &DreamGenContext::wearWatch, "WWAT" },
{ &DreamGenContext::usePoolReader, "POOL" }, { &DreamBase::usePoolReader, "POOL" },
{ &DreamGenContext::wearShades, "WSHD" }, { &DreamGenContext::wearShades, "WSHD" },
{ &DreamGenContext::grafittiDoor, "GRAF" }, { &DreamBase::grafittiDoor, "GRAF" },
{ &DreamGenContext::trapDoor, "TRAP" }, { &DreamBase::trapDoor, "TRAP" },
{ &DreamGenContext::edensCDPlayer, "CDPE" }, { &DreamBase::edensCDPlayer, "CDPE" },
{ &DreamGenContext::openTVDoor, "DLOK" }, { &DreamBase::openTVDoor, "DLOK" },
{ &DreamGenContext::useHole, "HOLE" }, { &DreamBase::useHole, "HOLE" },
{ &DreamGenContext::useDryer, "DRYR" }, { &DreamBase::useDryer, "DRYR" },
{ &DreamGenContext::useChurchHole, "HOLY" }, { &DreamBase::useChurchHole, "HOLY" },
{ &DreamGenContext::useWall, "WALL" }, { &DreamBase::useWall, "WALL" },
{ &DreamGenContext::useDiary, "BOOK" }, { &DreamBase::useDiary, "BOOK" },
{ &DreamGenContext::useAxe, "AXED" }, { &DreamBase::useAxe, "AXED" },
{ &DreamGenContext::useShield, "SHLD" }, { &DreamBase::useShield, "SHLD" },
{ &DreamGenContext::useRailing, "BCNY" }, { &DreamBase::useRailing, "BCNY" },
{ &DreamGenContext::useCoveredBox, "LIDC" }, { &DreamBase::useCoveredBox, "LIDC" },
{ &DreamGenContext::useClearBox, "LIDU" }, { &DreamBase::useClearBox, "LIDU" },
{ &DreamGenContext::useOpenBox, "LIDO" }, { &DreamBase::useOpenBox, "LIDO" },
{ &DreamGenContext::usePipe, "PIPE" }, { &DreamBase::usePipe, "PIPE" },
{ &DreamGenContext::useBalcony, "BALC" }, { &DreamBase::useBalcony, "BALC" },
{ &DreamGenContext::useWindow, "WIND" }, { &DreamBase::useWindow, "WIND" },
{ &DreamGenContext::viewFolder, "PAPR" }, { &DreamBase::viewFolder, "PAPR" },
{ &DreamGenContext::useTrainer, "UWTA" }, { &DreamGenContext::useTrainer, "UWTA" },
{ &DreamGenContext::useTrainer, "UWTB" }, { &DreamGenContext::useTrainer, "UWTB" },
{ &DreamGenContext::enterSymbol, "STAT" }, { &DreamGenContext::enterSymbol, "STAT" },
{ &DreamGenContext::openTomb, "TLID" }, { &DreamBase::openTomb, "TLID" },
{ &DreamGenContext::useSLab, "SLAB" }, { &DreamBase::useSlab, "SLAB" },
{ &DreamGenContext::useCart, "CART" }, { &DreamBase::useCart, "CART" },
{ &DreamGenContext::useFullCart, "FCAR" }, { &DreamBase::useFullCart, "FCAR" },
{ &DreamGenContext::sLabDoorA, "SLBA" }, { &DreamBase::slabDoorA, "SLBA" },
{ &DreamGenContext::sLabDoorB, "SLBB" }, { &DreamBase::slabDoorB, "SLBB" },
{ &DreamGenContext::sLabDoorC, "SLBC" }, { &DreamBase::slabDoorC, "SLBC" },
{ &DreamGenContext::sLabDoorD, "SLBD" }, { &DreamBase::slabDoorD, "SLBD" },
{ &DreamGenContext::sLabDoorE, "SLBE" }, { &DreamBase::slabDoorE, "SLBE" },
{ &DreamGenContext::sLabDoorF, "SLBF" }, { &DreamBase::slabDoorF, "SLBF" },
{ &DreamGenContext::usePlinth, "PLIN" }, { &DreamBase::usePlinth, "PLIN" },
{ &DreamGenContext::useLadder, "LADD" }, { &DreamBase::useLadder, "LADD" },
{ &DreamGenContext::useLadderB, "LADB" }, { &DreamBase::useLadderB, "LADB" },
{ &DreamGenContext::chewy, "GUMA" }, { &DreamGenContext::chewy, "GUMA" },
{ &DreamGenContext::wheelSound, "SQEE" }, { &DreamBase::wheelSound, "SQEE" },
{ &DreamGenContext::runTap, "TAPP" }, { &DreamBase::runTap, "TAPP" },
{ &DreamGenContext::playGuitar, "GUIT" }, { &DreamBase::playGuitar, "GUIT" },
{ &DreamGenContext::hotelControl, "CONT" }, { &DreamBase::hotelControl, "CONT" },
{ &DreamGenContext::hotelBell, "BELL" }, { &DreamBase::hotelBell, "BELL" },
}; };
if (data.byte(kReallocation) >= 50) { if (data.byte(kReallocation) >= 50) {
@ -164,7 +164,7 @@ void DreamGenContext::useRoutine() {
data.byte(kCommandtype) = 255; data.byte(kCommandtype) = 255;
} }
void DreamGenContext::useText(const uint8 *string) { void DreamBase::useText(const uint8 *string) {
createPanel(); createPanel();
showPanel(); showPanel();
showMan(); showMan();
@ -174,7 +174,7 @@ void DreamGenContext::useText(const uint8 *string) {
workToScreenM(); workToScreenM();
} }
void DreamGenContext::showFirstUse() { void DreamBase::showFirstUse() {
const uint8 *obText = getObTextStart(); const uint8 *obText = getObTextStart();
findNextColon(&obText); findNextColon(&obText);
findNextColon(&obText); findNextColon(&obText);
@ -182,7 +182,7 @@ void DreamGenContext::showFirstUse() {
hangOnP(400); hangOnP(400);
} }
void DreamGenContext::showSecondUse() { void DreamBase::showSecondUse() {
const uint8 *obText = getObTextStart(); const uint8 *obText = getObTextStart();
findNextColon(&obText); findNextColon(&obText);
findNextColon(&obText); findNextColon(&obText);
@ -191,7 +191,7 @@ void DreamGenContext::showSecondUse() {
hangOnP(400); hangOnP(400);
} }
void DreamGenContext::viewFolder() { void DreamBase::viewFolder() {
data.byte(kManisoffscreen) = 1; data.byte(kManisoffscreen) = 1;
getRidOfAll(); getRidOfAll();
loadFolder(); loadFolder();
@ -220,7 +220,7 @@ void DreamGenContext::viewFolder() {
workToScreenM(); workToScreenM();
} }
void DreamGenContext::edensCDPlayer() { void DreamBase::edensCDPlayer() {
showFirstUse(); showFirstUse();
data.word(kWatchingtime) = 18 * 2; data.word(kWatchingtime) = 18 * 2;
data.word(kReeltowatch) = 25; data.word(kReeltowatch) = 25;
@ -230,13 +230,13 @@ void DreamGenContext::edensCDPlayer() {
data.byte(kGetback) = 1; data.byte(kGetback) = 1;
} }
void DreamGenContext::hotelBell() { void DreamBase::hotelBell() {
playChannel1(12); playChannel1(12);
showFirstUse(); showFirstUse();
putBackObStuff(); putBackObStuff();
} }
void DreamGenContext::playGuitar() { void DreamBase::playGuitar() {
playChannel1(14); playChannel1(14);
showFirstUse(); showFirstUse();
putBackObStuff(); putBackObStuff();
@ -248,7 +248,7 @@ void DreamGenContext::useElevator1() {
data.byte(kGetback) = 1; data.byte(kGetback) = 1;
} }
void DreamGenContext::useElevator2() { void DreamBase::useElevator2() {
showFirstUse(); showFirstUse();
if (data.byte(kLocation) == 23) // In pool hall if (data.byte(kLocation) == 23) // In pool hall
@ -262,7 +262,7 @@ void DreamGenContext::useElevator2() {
data.byte(kGetback) = 1; data.byte(kGetback) = 1;
} }
void DreamGenContext::useElevator3() { void DreamBase::useElevator3() {
showFirstUse(); showFirstUse();
data.byte(kCounttoclose) = 20; data.byte(kCounttoclose) = 20;
data.byte(kNewlocation) = 34; data.byte(kNewlocation) = 34;
@ -274,7 +274,7 @@ void DreamGenContext::useElevator3() {
data.byte(kGetback) = 1; data.byte(kGetback) = 1;
} }
void DreamGenContext::useElevator4() { void DreamBase::useElevator4() {
showFirstUse(); showFirstUse();
data.word(kReeltowatch) = 0; data.word(kReeltowatch) = 0;
data.word(kEndwatchreel) = 11; data.word(kEndwatchreel) = 11;
@ -286,7 +286,7 @@ void DreamGenContext::useElevator4() {
data.byte(kNewlocation) = 24; data.byte(kNewlocation) = 24;
} }
void DreamGenContext::useElevator5() { void DreamBase::useElevator5() {
placeSetObject(4); placeSetObject(4);
removeSetObject(0); removeSetObject(0);
data.byte(kNewlocation) = 20; data.byte(kNewlocation) = 20;
@ -296,19 +296,19 @@ void DreamGenContext::useElevator5() {
data.byte(kGetback) = 1; data.byte(kGetback) = 1;
} }
void DreamGenContext::useHatch() { void DreamBase::useHatch() {
showFirstUse(); showFirstUse();
data.byte(kNewlocation) = 40; data.byte(kNewlocation) = 40;
data.byte(kGetback) = 1; data.byte(kGetback) = 1;
} }
void DreamGenContext::wheelSound() { void DreamBase::wheelSound() {
playChannel1(17); playChannel1(17);
showFirstUse(); showFirstUse();
putBackObStuff(); putBackObStuff();
} }
void DreamGenContext::callHotelLift() { void DreamBase::callHotelLift() {
playChannel1(12); playChannel1(12);
showFirstUse(); showFirstUse();
data.byte(kCounttoopen) = 8; data.byte(kCounttoopen) = 8;
@ -319,7 +319,7 @@ void DreamGenContext::callHotelLift() {
turnPathOn(4); turnPathOn(4);
} }
void DreamGenContext::useShield() { void DreamBase::useShield() {
if (data.byte(kReallocation) != 20 || data.byte(kCombatcount) == 0) { if (data.byte(kReallocation) != 20 || data.byte(kCombatcount) == 0) {
// Not in Sart room // Not in Sart room
showFirstUse(); showFirstUse();
@ -333,7 +333,7 @@ void DreamGenContext::useShield() {
} }
} }
void DreamGenContext::useCoveredBox() { void DreamBase::useCoveredBox() {
data.byte(kProgresspoints)++; data.byte(kProgresspoints)++;
showFirstUse(); showFirstUse();
data.word(kWatchingtime) = 50; data.word(kWatchingtime) = 50;
@ -344,7 +344,7 @@ void DreamGenContext::useCoveredBox() {
data.byte(kGetback) = 1; data.byte(kGetback) = 1;
} }
void DreamGenContext::useRailing() { void DreamBase::useRailing() {
showFirstUse(); showFirstUse();
data.word(kWatchingtime) = 80; data.word(kWatchingtime) = 80;
data.word(kReeltowatch) = 0; data.word(kReeltowatch) = 0;
@ -383,7 +383,7 @@ void DreamGenContext::wearShades() {
} }
} }
void DreamGenContext::useChurchHole() { void DreamBase::useChurchHole() {
showFirstUse(); showFirstUse();
data.byte(kGetback) = 1; data.byte(kGetback) = 1;
data.word(kWatchingtime) = 28; data.word(kWatchingtime) = 28;
@ -393,7 +393,7 @@ void DreamGenContext::useChurchHole() {
data.byte(kSpeedcount) = 1; data.byte(kSpeedcount) = 1;
} }
void DreamGenContext::sitDownInBar() { void DreamBase::sitDownInBar() {
if (data.byte(kWatchmode) != 0xFF) { if (data.byte(kWatchmode) != 0xFF) {
// Sat down // Sat down
showSecondUse(); showSecondUse();
@ -411,13 +411,13 @@ void DreamGenContext::sitDownInBar() {
} }
} }
void DreamGenContext::useDryer() { void DreamBase::useDryer() {
playChannel1(12); playChannel1(12);
showFirstUse(); showFirstUse();
data.byte(kGetback) = 1; data.byte(kGetback) = 1;
} }
void DreamGenContext::useBalcony() { void DreamBase::useBalcony() {
showFirstUse(); showFirstUse();
turnPathOn(6); turnPathOn(6);
turnPathOff(0); turnPathOff(0);
@ -441,7 +441,7 @@ void DreamGenContext::useBalcony() {
data.byte(kGetback) = 1; data.byte(kGetback) = 1;
} }
void DreamGenContext::useWindow() { void DreamBase::useWindow() {
if (data.byte(kManspath) != 6) { if (data.byte(kManspath) != 6) {
// Not on balcony // Not on balcony
showSecondUse(); showSecondUse();
@ -454,7 +454,7 @@ void DreamGenContext::useWindow() {
} }
} }
void DreamGenContext::trapDoor() { void DreamBase::trapDoor() {
data.byte(kProgresspoints)++; data.byte(kProgresspoints)++;
showFirstUse(); showFirstUse();
switchRyanOff(); switchRyanOff();
@ -467,14 +467,14 @@ void DreamGenContext::trapDoor() {
data.byte(kGetback) = 1; data.byte(kGetback) = 1;
} }
void DreamGenContext::callEdensLift() { void DreamBase::callEdensLift() {
showFirstUse(); showFirstUse();
data.byte(kCounttoopen) = 8; data.byte(kCounttoopen) = 8;
data.byte(kGetback) = 1; data.byte(kGetback) = 1;
turnPathOn(2); turnPathOn(2);
} }
void DreamGenContext::callEdensDLift() { void DreamBase::callEdensDLift() {
if (data.byte(kLiftflag) == 1) { if (data.byte(kLiftflag) == 1) {
// Eden's D here // Eden's D here
showSecondUse(); showSecondUse();
@ -487,38 +487,38 @@ void DreamGenContext::callEdensDLift() {
} }
} }
void DreamGenContext::openYourNeighbour() { void DreamBase::openYourNeighbour() {
enterCode(255, 255, 255, 255); enterCode(255, 255, 255, 255);
data.byte(kGetback) = 1; data.byte(kGetback) = 1;
} }
void DreamGenContext::openRyan() { void DreamBase::openRyan() {
enterCode(5, 1, 0, 6); enterCode(5, 1, 0, 6);
data.byte(kGetback) = 1; data.byte(kGetback) = 1;
} }
void DreamGenContext::openPoolBoss() { void DreamBase::openPoolBoss() {
enterCode(5, 2, 2, 2); enterCode(5, 2, 2, 2);
data.byte(kGetback) = 1; data.byte(kGetback) = 1;
} }
void DreamGenContext::openEden() { void DreamBase::openEden() {
enterCode(2, 8, 6, 5); enterCode(2, 8, 6, 5);
data.byte(kGetback) = 1; data.byte(kGetback) = 1;
} }
void DreamGenContext::openSarters() { void DreamBase::openSarters() {
enterCode(7, 8, 3, 3); enterCode(7, 8, 3, 3);
data.byte(kGetback) = 1; data.byte(kGetback) = 1;
} }
void DreamGenContext::openLouis() { void DreamBase::openLouis() {
enterCode(5, 2, 3, 8); enterCode(5, 2, 3, 8);
data.byte(kGetback) = 1; data.byte(kGetback) = 1;
} }
void DreamGenContext::useWall() { void DreamBase::useWall() {
showFirstUse(); showFirstUse();
if (data.byte(kManspath) != 3) { if (data.byte(kManspath) != 3) {
@ -561,7 +561,7 @@ void DreamGenContext::useWall() {
} }
} }
void DreamGenContext::useLadder() { void DreamBase::useLadder() {
showFirstUse(); showFirstUse();
data.byte(kMapx) = data.byte(kMapx) - 11; data.byte(kMapx) = data.byte(kMapx) - 11;
findRoomInLoc(); findRoomInLoc();
@ -575,7 +575,7 @@ void DreamGenContext::useLadder() {
data.byte(kGetback) = 1; data.byte(kGetback) = 1;
} }
void DreamGenContext::useLadderB() { void DreamBase::useLadderB() {
showFirstUse(); showFirstUse();
data.byte(kMapx) = data.byte(kMapx) + 11; data.byte(kMapx) = data.byte(kMapx) + 11;
findRoomInLoc(); findRoomInLoc();
@ -589,7 +589,7 @@ void DreamGenContext::useLadderB() {
data.byte(kGetback) = 1; data.byte(kGetback) = 1;
} }
void DreamGenContext::sLabDoorA() { void DreamBase::slabDoorA() {
showFirstUse(); showFirstUse();
data.byte(kGetback) = 1; data.byte(kGetback) = 1;
data.byte(kWatchspeed) = 1; data.byte(kWatchspeed) = 1;
@ -609,7 +609,7 @@ void DreamGenContext::sLabDoorA() {
} }
} }
void DreamGenContext::sLabDoorB() { void DreamBase::slabDoorB() {
if (data.byte(kDreamnumber) != 1) { if (data.byte(kDreamnumber) != 1) {
// Wrong // Wrong
showFirstUse(); showFirstUse();
@ -641,7 +641,7 @@ void DreamGenContext::sLabDoorB() {
} }
} }
void DreamGenContext::sLabDoorC() { void DreamBase::slabDoorC() {
showFirstUse(); showFirstUse();
data.byte(kGetback) = 1; data.byte(kGetback) = 1;
data.byte(kWatchspeed) = 1; data.byte(kWatchspeed) = 1;
@ -661,7 +661,7 @@ void DreamGenContext::sLabDoorC() {
} }
} }
void DreamGenContext::sLabDoorD() { void DreamBase::slabDoorD() {
showFirstUse(); showFirstUse();
data.byte(kGetback) = 1; data.byte(kGetback) = 1;
data.byte(kWatchspeed) = 1; data.byte(kWatchspeed) = 1;
@ -681,7 +681,7 @@ void DreamGenContext::sLabDoorD() {
} }
} }
void DreamGenContext::sLabDoorE() { void DreamBase::slabDoorE() {
showFirstUse(); showFirstUse();
data.byte(kGetback) = 1; data.byte(kGetback) = 1;
data.byte(kWatchspeed) = 1; data.byte(kWatchspeed) = 1;
@ -701,7 +701,7 @@ void DreamGenContext::sLabDoorE() {
} }
} }
void DreamGenContext::sLabDoorF() { void DreamBase::slabDoorF() {
showFirstUse(); showFirstUse();
data.byte(kGetback) = 1; data.byte(kGetback) = 1;
data.byte(kWatchspeed) = 1; data.byte(kWatchspeed) = 1;
@ -721,7 +721,7 @@ void DreamGenContext::sLabDoorF() {
} }
} }
bool DreamGenContext::defaultUseHandler(const char *id) { bool DreamBase::defaultUseHandler(const char *id) {
if (data.byte(kWithobject) == 255) { if (data.byte(kWithobject) == 255) {
withWhat(); withWhat();
return true; // event handled return true; // event handled
@ -737,7 +737,7 @@ bool DreamGenContext::defaultUseHandler(const char *id) {
return false; // continue with the original event return false; // continue with the original event
} }
void DreamGenContext::useChurchGate() { void DreamBase::useChurchGate() {
if (defaultUseHandler("CUTT")) if (defaultUseHandler("CUTT"))
return; return;
@ -755,7 +755,7 @@ void DreamGenContext::useChurchGate() {
turnPathOn(2); // Open church turnPathOn(2); // Open church
} }
void DreamGenContext::useGun() { void DreamBase::useGun() {
if (data.byte(kObjecttype) != kExObjectType) { if (data.byte(kObjecttype) != kExObjectType) {
// gun is not taken // gun is not taken
@ -866,7 +866,7 @@ void DreamGenContext::useGun() {
} }
} }
void DreamGenContext::useFullCart() { void DreamBase::useFullCart() {
data.byte(kProgresspoints)++; data.byte(kProgresspoints)++;
turnAnyPathOn(2, data.byte(kRoomnum) + 6); turnAnyPathOn(2, data.byte(kRoomnum) + 6);
data.byte(kManspath) = 4; data.byte(kManspath) = 4;
@ -884,7 +884,7 @@ void DreamGenContext::useFullCart() {
data.byte(kGetback) = 1; data.byte(kGetback) = 1;
} }
void DreamGenContext::useClearBox() { void DreamBase::useClearBox() {
if (defaultUseHandler("RAIL")) if (defaultUseHandler("RAIL"))
return; return;
@ -899,7 +899,7 @@ void DreamGenContext::useClearBox() {
data.byte(kGetback) = 1; data.byte(kGetback) = 1;
} }
void DreamGenContext::openTVDoor() { void DreamBase::openTVDoor() {
if (defaultUseHandler("ULOK")) if (defaultUseHandler("ULOK"))
return; return;
@ -909,7 +909,7 @@ void DreamGenContext::openTVDoor() {
data.byte(kGetback) = 1; data.byte(kGetback) = 1;
} }
void DreamGenContext::usePlate() { void DreamBase::usePlate() {
if (data.byte(kWithobject) == 255) { if (data.byte(kWithobject) == 255) {
withWhat(); withWhat();
return; return;
@ -936,7 +936,7 @@ void DreamGenContext::usePlate() {
} }
} }
void DreamGenContext::usePlinth() { void DreamBase::usePlinth() {
if (data.byte(kWithobject) == 255) { if (data.byte(kWithobject) == 255) {
withWhat(); withWhat();
return; return;
@ -959,7 +959,7 @@ void DreamGenContext::usePlinth() {
} }
} }
void DreamGenContext::useElvDoor() { void DreamBase::useElvDoor() {
if (defaultUseHandler("AXED")) if (defaultUseHandler("AXED"))
return; return;
@ -989,7 +989,7 @@ void DreamGenContext::useObject() {
useRoutine(); useRoutine();
} }
void DreamGenContext::useWinch() { void DreamBase::useWinch() {
uint16 contentIndex = checkInside(40, 1); uint16 contentIndex = checkInside(40, 1);
if (contentIndex == kNumexobjects || !compare(contentIndex, kExObjectType, "FUSE")) { if (contentIndex == kNumexobjects || !compare(contentIndex, kExObjectType, "FUSE")) {
// No winch // No winch
@ -1013,7 +1013,7 @@ void DreamGenContext::useWinch() {
data.byte(kProgresspoints)++; data.byte(kProgresspoints)++;
} }
void DreamGenContext::useCart() { void DreamBase::useCart() {
if (defaultUseHandler("ROCK")) if (defaultUseHandler("ROCK"))
return; return;
@ -1048,7 +1048,7 @@ void DreamGenContext::chewy() {
data.byte(kGetback) = 1; data.byte(kGetback) = 1;
} }
void DreamGenContext::useHole() { void DreamBase::useHole() {
if (defaultUseHandler("HNDA")) if (defaultUseHandler("HNDA"))
return; return;
@ -1060,7 +1060,7 @@ void DreamGenContext::useHole() {
data.byte(kGetback) = 1; data.byte(kGetback) = 1;
} }
void DreamGenContext::openHotelDoor() { void DreamBase::openHotelDoor() {
if (defaultUseHandler("KEYA")) if (defaultUseHandler("KEYA"))
return; return;
@ -1070,7 +1070,7 @@ void DreamGenContext::openHotelDoor() {
data.byte(kGetback) = 1; data.byte(kGetback) = 1;
} }
void DreamGenContext::openHotelDoor2() { void DreamBase::openHotelDoor2() {
if (defaultUseHandler("KEYA")) if (defaultUseHandler("KEYA"))
return; return;
@ -1079,7 +1079,7 @@ void DreamGenContext::openHotelDoor2() {
putBackObStuff(); putBackObStuff();
} }
void DreamGenContext::grafittiDoor() { void DreamBase::grafittiDoor() {
if (defaultUseHandler("APEN")) if (defaultUseHandler("APEN"))
return; return;
@ -1087,7 +1087,7 @@ void DreamGenContext::grafittiDoor() {
putBackObStuff(); putBackObStuff();
} }
void DreamGenContext::usePoolReader() { void DreamBase::usePoolReader() {
if (defaultUseHandler("MEMB")) if (defaultUseHandler("MEMB"))
return; return;
@ -1103,7 +1103,7 @@ void DreamGenContext::usePoolReader() {
} }
} }
void DreamGenContext::useCardReader1() { void DreamBase::useCardReader1() {
if (defaultUseHandler("CSHR")) if (defaultUseHandler("CSHR"))
return; return;
@ -1125,7 +1125,7 @@ void DreamGenContext::useCardReader1() {
} }
} }
void DreamGenContext::useCardReader2() { void DreamBase::useCardReader2() {
if (defaultUseHandler("CSHR")) if (defaultUseHandler("CSHR"))
return; return;
@ -1152,7 +1152,7 @@ void DreamGenContext::useCardReader2() {
} }
} }
void DreamGenContext::useCardReader3() { void DreamBase::useCardReader3() {
if (defaultUseHandler("CSHR")) if (defaultUseHandler("CSHR"))
return; return;
@ -1174,7 +1174,7 @@ void DreamGenContext::useCardReader3() {
} }
} }
void DreamGenContext::useLighter() { void DreamBase::useLighter() {
if (data.byte(kWithobject) == 255) { if (data.byte(kWithobject) == 255) {
withWhat(); withWhat();
return; return;
@ -1191,7 +1191,7 @@ void DreamGenContext::useLighter() {
} }
} }
void DreamGenContext::useWire() { void DreamBase::useWire() {
if (data.byte(kWithobject) == 255) { if (data.byte(kWithobject) == 255) {
withWhat(); withWhat();
return; return;
@ -1216,7 +1216,7 @@ void DreamGenContext::useWire() {
putBackObStuff(); putBackObStuff();
} }
void DreamGenContext::openTomb() { void DreamBase::openTomb() {
data.byte(kProgresspoints)++; data.byte(kProgresspoints)++;
showFirstUse(); showFirstUse();
data.word(kWatchingtime) = 35 * 2; data.word(kWatchingtime) = 35 * 2;
@ -1227,7 +1227,7 @@ void DreamGenContext::openTomb() {
data.byte(kGetback) = 1; data.byte(kGetback) = 1;
} }
void DreamGenContext::hotelControl() { void DreamBase::hotelControl() {
if (data.byte(kReallocation) != 21 || data.byte(kMapx) != 33) if (data.byte(kReallocation) != 21 || data.byte(kMapx) != 33)
showSecondUse(); // Not right control showSecondUse(); // Not right control
else else
@ -1236,7 +1236,7 @@ void DreamGenContext::hotelControl() {
putBackObStuff(); putBackObStuff();
} }
void DreamGenContext::useCooker() { void DreamBase::useCooker() {
if (checkInside(data.byte(kCommand), data.byte(kObjecttype)) == kNumexobjects) if (checkInside(data.byte(kCommand), data.byte(kObjecttype)) == kNumexobjects)
showFirstUse(); showFirstUse();
else else
@ -1254,7 +1254,7 @@ void DreamBase::removeFreeObject(uint8 index) {
getFreeAd(index)->mapad[0] = 0xFF; getFreeAd(index)->mapad[0] = 0xFF;
} }
void DreamGenContext::useDiary() { void DreamBase::useDiary() {
getRidOfReels(); getRidOfReels();
loadIntoTemp("DREAMWEB.G14"); loadIntoTemp("DREAMWEB.G14");
loadTempText("DREAMWEB.T51"); loadTempText("DREAMWEB.T51");
@ -1300,7 +1300,7 @@ void DreamGenContext::useDiary() {
workToScreenM(); workToScreenM();
} }
void DreamGenContext::useControl() { void DreamBase::useControl() {
if (data.byte(kWithobject) == 255) { if (data.byte(kWithobject) == 255) {
withWhat(); withWhat();
return; return;
@ -1353,7 +1353,7 @@ void DreamGenContext::useControl() {
} }
} }
void DreamGenContext::useSLab() { void DreamBase::useSlab() {
if (data.byte(kWithobject) == 255) { if (data.byte(kWithobject) == 255) {
withWhat(); withWhat();
return; return;
@ -1385,7 +1385,7 @@ void DreamGenContext::useSLab() {
data.byte(kGetback) = 1; data.byte(kGetback) = 1;
} }
void DreamGenContext::usePipe() { void DreamBase::usePipe() {
if (data.byte(kWithobject) == 255) { if (data.byte(kWithobject) == 255) {
withWhat(); withWhat();
return; return;
@ -1408,7 +1408,7 @@ void DreamGenContext::usePipe() {
} }
} }
void DreamGenContext::useOpenBox() { void DreamBase::useOpenBox() {
if (data.byte(kWithobject) == 255) { if (data.byte(kWithobject) == 255) {
withWhat(); withWhat();
return; return;
@ -1440,7 +1440,7 @@ void DreamGenContext::useOpenBox() {
showFirstUse(); showFirstUse();
} }
void DreamGenContext::runTap() { void DreamBase::runTap() {
if (data.byte(kWithobject) == 255) { if (data.byte(kWithobject) == 255) {
withWhat(); withWhat();
return; return;
@ -1467,7 +1467,7 @@ void DreamGenContext::runTap() {
putBackObStuff(); putBackObStuff();
} }
void DreamGenContext::useAxe() { void DreamBase::useAxe() {
if (data.byte(kReallocation) != 22) { if (data.byte(kReallocation) != 22) {
// Not in pool // Not in pool
showFirstUse(); showFirstUse();
@ -1528,7 +1528,7 @@ void DreamGenContext::useKey() {
} }
} }
void DreamGenContext::useHandle() { void DreamBase::useHandle() {
SetObject *object = getSetAd(findSetObject("CUTW")); SetObject *object = getSetAd(findSetObject("CUTW"));
if (object->mapad[0] == 255) { if (object->mapad[0] == 255) {
// Wire not cut // Wire not cut
@ -1542,7 +1542,7 @@ void DreamGenContext::useHandle() {
data.byte(kGetback) = 1; data.byte(kGetback) = 1;
} }
void DreamGenContext::useAltar() { void DreamBase::useAltar() {
if (findExObject("CNDA") == 114 || findExObject("CNDB") == 114) { if (findExObject("CNDA") == 114 || findExObject("CNDB") == 114) {
// Things on altar // Things on altar
showFirstUse(); showFirstUse();
@ -1590,7 +1590,7 @@ void DreamBase::withWhat() {
data.byte(kInvopen) = 2; data.byte(kInvopen) = 2;
} }
void DreamGenContext::notHeldError() { void DreamBase::notHeldError() {
createPanel(); createPanel();
showPanel(); showPanel();
showMan(); showMan();
@ -1602,7 +1602,7 @@ void DreamGenContext::notHeldError() {
putBackObStuff(); putBackObStuff();
} }
void DreamGenContext::useCashCard() { void DreamBase::useCashCard() {
getRidOfReels(); getRidOfReels();
loadKeypad(); loadKeypad();
createPanel(); createPanel();