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', 'showcity',
'showcurrentfile', 'showcurrentfile',
'showdiscops', 'showdiscops',
'showexit',
'showfirstuse', 'showfirstuse',
'showfolder', 'showfolder',
'showframe', 'showframe',

View file

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

View file

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

View file

@ -2798,6 +2798,11 @@ void DreamGenContext::showRightPage() {
data.word(kLinespacing) = 10; 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) { uint8 DreamGenContext::getLocation(uint8 index) {
return data.byte(kRoomscango + index); return data.byte(kRoomscango + index);
} }

View file

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