DREAMWEB: Port 'runendseq' to C++ and remove the unused 'drawitall' function

This commit is contained in:
Filippos Karapetis 2011-12-14 02:03:57 +02:00
parent a97a359ea3
commit a22266d871
5 changed files with 24 additions and 33 deletions

View file

@ -337,6 +337,7 @@ generator = cpp(context, "DreamGen", blacklist = [
'doshake', 'doshake',
'drawflags', 'drawflags',
'drawfloor', 'drawfloor',
'drawitall',
'drinker', 'drinker',
'droperror', 'droperror',
'drunk', 'drunk',
@ -658,6 +659,7 @@ generator = cpp(context, "DreamGen", blacklist = [
'rollendcredits', 'rollendcredits',
'rollendcredits2', 'rollendcredits2',
'roomname', 'roomname',
'runendseq',
'runtap', 'runtap',
'runintroseq', 'runintroseq',
'saveems', 'saveems',

View file

@ -864,28 +864,6 @@ void DreamGenContext::initialMonCols() {
showGroup(); showGroup();
} }
void DreamGenContext::runEndSeq() {
STACK_CHECK;
atmospheres();
data.byte(kGetback) = 0;
moreendseq:
vSync();
spriteUpdate();
vSync();
delEverything();
printSprites();
reelsOnScreen();
afterIntroRoom();
useTimedText();
vSync();
dumpMap();
dumpTimedText();
vSync();
_cmp(data.byte(kGetback), 1);
if (!flags.z())
goto moreendseq;
}
void DreamGenContext::fillOpen() { void DreamGenContext::fillOpen() {
STACK_CHECK; STACK_CHECK;
delTextLine(); delTextLine();
@ -3475,14 +3453,6 @@ lookcolon:
goto lookcolon; goto lookcolon;
} }
void DreamGenContext::drawItAll() {
STACK_CHECK;
createPanel();
drawFloor();
printSprites();
showIcon();
}
void DreamGenContext::useCashCard() { void DreamGenContext::useCashCard() {
STACK_CHECK; STACK_CHECK;
getRidOfReels(); getRidOfReels();

View file

@ -483,8 +483,8 @@ public:
void __start(); void __start();
#include "stubs.h" // Allow hand-reversed functions to have a signature different than void f() #include "stubs.h" // Allow hand-reversed functions to have a signature different than void f()
void fadeDownMon();
void identifyOb(); void identifyOb();
void runEndSeq();
void clearBuffers(); void clearBuffers();
void getObTextStart(); void getObTextStart();
void checkObjectSize(); void checkObjectSize();
@ -497,7 +497,6 @@ public:
void getOpenedSize(); void getOpenedSize();
void adjustUp(); void adjustUp();
void fadeScreenDownHalf(); void fadeScreenDownHalf();
void fadeDownMon();
void outOfOpen(); void outOfOpen();
void dirCom(); void dirCom();
void endGameSeq(); void endGameSeq();
@ -547,7 +546,6 @@ public:
void setPickup(); void setPickup();
void dropObject(); void dropObject();
void openOb(); void openOb();
void drawItAll();
void useStereo(); void useStereo();
void showDiaryKeys(); void showDiaryKeys();
void useOpened(); void useOpened();

View file

@ -4627,4 +4627,24 @@ void DreamGenContext::dumpDiaryKeys() {
multiDump(kDiaryx + 151, kDiaryy + 71, 16, 16); multiDump(kDiaryx + 151, kDiaryy + 71, 16, 16);
} }
void DreamGenContext::runEndSeq() {
atmospheres();
data.byte(kGetback) = 0;
do {
vSync();
spriteUpdate();
vSync();
delEverything();
printSprites();
reelsOnScreen();
afterIntroRoom();
useTimedText();
vSync();
dumpMap();
dumpTimedText();
vSync();
} while (data.byte(kGetback) != 1);
}
} // End of namespace DreamGen } // End of namespace DreamGen

View file

@ -584,5 +584,6 @@
void updateSymbolBot(); void updateSymbolBot();
void showDiaryPage(); void showDiaryPage();
void dumpDiaryKeys(); void dumpDiaryKeys();
void runEndSeq();
#endif #endif