DREAMWEB: 'showExit' ported to C++

This commit is contained in:
Bertrand Augereau 2011-12-04 16:31:11 +01:00
parent 024fe9ced5
commit 6c561d11c6
5 changed files with 9 additions and 13 deletions

View file

@ -407,6 +407,7 @@ generator = cpp(context, "DreamGen", blacklist = [
'showcity',
'showcurrentfile',
'showdiscops',
'showexit',
'showfirstuse',
'showfolder',
'showframe',

View file

@ -10892,16 +10892,6 @@ void DreamGenContext::showMan() {
showFrame();
}
void DreamGenContext::showExit() {
STACK_CHECK;
ds = data.word(kIcons1);
di = 274;
bx = 154;
al = 11;
ah = 0;
showFrame();
}
void DreamGenContext::panelIcons1() {
STACK_CHECK;
di = 0;

View file

@ -710,7 +710,7 @@ public:
void findInvPos();
void workoutFrames();
void dumpSymBox();
void dumpSymbol();
void rollEndCredits();
void intro2Text();
void interviewer();
void getKeyAndLogo();
@ -734,7 +734,7 @@ public:
void showDiaryPage();
void useShield();
void getBackToOps();
void rollEndCredits();
void dumpSymbol();
void intro1Text();
void transferToEx();
void reExFromInv();
@ -880,7 +880,6 @@ public:
void showPuzText();
void incRyanPage();
void useElevator3();
void showExit();
void findExObject();
void clearChanges();
void useChurchHole();

View file

@ -2798,6 +2798,11 @@ void DreamGenContext::showRightPage() {
data.word(kLinespacing) = 10;
}
void DreamGenContext::showExit() {
const Frame *frame = (const Frame *)getSegment(data.word(kIcons1)).ptr(0, 0);
showFrame(frame, 274, 154, 11, 0);
}
uint8 DreamGenContext::getLocation(uint8 index) {
return data.byte(kRoomscango + index);
}

View file

@ -404,6 +404,7 @@
void singleKey(uint8 key, uint16 x, uint16 y);
void showKeypad();
void showOuterPad();
void showExit();
void buttonOne();
void buttonTwo();
void buttonThree();