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',
'drawflags',
'drawfloor',
'drawitall',
'drinker',
'droperror',
'drunk',
@ -658,6 +659,7 @@ generator = cpp(context, "DreamGen", blacklist = [
'rollendcredits',
'rollendcredits2',
'roomname',
'runendseq',
'runtap',
'runintroseq',
'saveems',

View file

@ -864,28 +864,6 @@ void DreamGenContext::initialMonCols() {
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() {
STACK_CHECK;
delTextLine();
@ -3475,14 +3453,6 @@ lookcolon:
goto lookcolon;
}
void DreamGenContext::drawItAll() {
STACK_CHECK;
createPanel();
drawFloor();
printSprites();
showIcon();
}
void DreamGenContext::useCashCard() {
STACK_CHECK;
getRidOfReels();

View file

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

View file

@ -4627,4 +4627,24 @@ void DreamGenContext::dumpDiaryKeys() {
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

View file

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