DREAMWEB: Port 'lookatcard' to C++

This commit is contained in:
Filippos Karapetis 2011-12-14 02:17:53 +02:00
parent a22266d871
commit f1a099d4f8
5 changed files with 34 additions and 54 deletions

View File

@ -515,6 +515,7 @@ generator = cpp(context, "DreamGen", blacklist = [
'locklighton',
'lockmon',
'look',
'lookatcard',
'loopchannel0',
'louis',
'louischair',

View File

@ -3510,57 +3510,6 @@ _tmp1:
putBackObStuff();
}
void DreamGenContext::lookAtCard() {
STACK_CHECK;
data.byte(kManisoffscreen) = 1;
getRidOfReels();
loadKeypad();
createPanel2();
di = 160;
bx = 80;
ds = data.word(kTempgraphics);
al = 42;
ah = 128;
showFrame();
getObTextStart();
findNextColon();
findNextColon();
findNextColon();
di = 36;
bx = 124;
dl = 241;
al = 0;
ah = 0;
printDirect();
push(es);
push(si);
workToScreenM();
cx = 280;
hangOnW();
createPanel2();
di = 160;
bx = 80;
ds = data.word(kTempgraphics);
al = 42;
ah = 128;
showFrame();
si = pop();
es = pop();
di = 36;
bx = 130;
dl = 241;
al = 0;
ah = 0;
printDirect();
workToScreenM();
cx = 200;
hangOnW();
data.byte(kManisoffscreen) = 0;
getRidOfTemp();
restoreReels();
putBackObStuff();
}
void DreamGenContext::moneyPoke() {
STACK_CHECK;
bx = offset_money1poke;

View File

@ -489,7 +489,7 @@ public:
void getObTextStart();
void checkObjectSize();
void isRyanHolding();
void showSlots();
void fillOpen();
void useCashCard();
void moneyPoke();
void doSomeTalk();
@ -537,10 +537,9 @@ public:
void poolGuard();
void lookAtPlace();
void findAllOpen();
void fillOpen();
void showSlots();
void findSetObject();
void deleteExObject();
void lookAtCard();
void helicopter();
void getEitherAd();
void setPickup();

View File

@ -4647,4 +4647,34 @@ void DreamGenContext::runEndSeq() {
} while (data.byte(kGetback) != 1);
}
void DreamGenContext::lookAtCard() {
//showFrame((Frame *)ds.ptr(0, 0), di, bx, ax & 0x1ff, ah & 0xfe, &width, &height);
//al = DreamBase::printDirect(&string, di, &y, dl, (bool)(dl & 1));
data.byte(kManisoffscreen) = 1;
getRidOfReels();
loadKeypad();
createPanel2();
showFrame(tempGraphics(), 160, 80, 42, 128);
uint8 *obText = getObTextStartCPP();
findNextColon(&obText);
findNextColon(&obText);
findNextColon(&obText);
printDirect(obText, 36, 124, 241, 241 & 1);
push(es);
push(si);
workToScreenM();
hangOnW(280);
createPanel2();
showFrame(tempGraphics(), 160, 80, 42, 128);
si = pop();
es = pop();
printDirect(obText, 36, 130, 241, 241 & 1);
workToScreenM();
hangOnW(200);
data.byte(kManisoffscreen) = 0;
getRidOfTemp();
restoreReels();
putBackObStuff();
}
} // End of namespace DreamGen

View File

@ -585,5 +585,6 @@
void showDiaryPage();
void dumpDiaryKeys();
void runEndSeq();
void lookAtCard();
#endif