DREAMWEB: 'printoutermon', 'showarrows' ported to C++

This commit is contained in:
Filippos Karapetis 2011-12-08 10:52:15 +02:00
parent 34b6935cda
commit 67fb3dcd5e
6 changed files with 17 additions and 52 deletions

View File

@ -505,6 +505,7 @@ generator = cpp(context, "DreamGen", blacklist = [
'printdirect',
'printlogo',
'printmessage',
'printoutermon',
'printslow',
'printsprites',
'printundermon',
@ -578,6 +579,7 @@ generator = cpp(context, "DreamGen", blacklist = [
'showallex',
'showallfree',
'showallobs',
'showarrows',
'showblink',
'showbyte',
'showcity',

View File

@ -3658,28 +3658,6 @@ void DreamGenContext::getDestInfo() {
ax = pop();
}
void DreamGenContext::showArrows() {
STACK_CHECK;
di = 116-12;
bx = 16;
ds = data.word(kTempgraphics);
al = 0;
ah = 0;
showFrame();
di = 226+12;
bx = 16;
ds = data.word(kTempgraphics);
al = 1;
ah = 0;
showFrame();
di = 280;
bx = 14;
ds = data.word(kTempgraphics);
al = 2;
ah = 0;
showFrame();
}
void DreamGenContext::resetLocation() {
STACK_CHECK;
push(ax);
@ -3731,34 +3709,6 @@ clearedlocations:
es.byte(bx) = 0;
}
void DreamGenContext::printOuterMon() {
STACK_CHECK;
di = 40;
bx = 32;
ds = data.word(kTempgraphics);
al = 1;
ah = 0;
showFrame();
di = 264;
bx = 32;
ds = data.word(kTempgraphics);
al = 2;
ah = 0;
showFrame();
di = 40;
bx = 12;
ds = data.word(kTempgraphics);
al = 3;
ah = 0;
showFrame();
di = 40;
bx = 164;
ds = data.word(kTempgraphics);
al = 4;
ah = 0;
showFrame();
}
void DreamGenContext::lookInInterface() {
STACK_CHECK;
al = 'I';

View File

@ -595,8 +595,6 @@ public:
void deleteExText();
void entryAnims();
void getFreeAd();
void showArrows();
void printOuterMon();
void showDecisions();
void removeObFromInv();
void heavy();

View File

@ -278,6 +278,13 @@ void DreamGenContext::turnOnPower() {
powerLightOn();
}
void DreamGenContext::printOuterMon() {
showFrame(tempGraphics(), 40, 32, 1, 0);
showFrame(tempGraphics(), 264, 32, 2, 0);
showFrame(tempGraphics(), 40, 12, 3, 0);
showFrame(tempGraphics(), 40, 164, 4, 0);
}
void DreamGenContext::loadPersonal() {
if (data.byte(kLocation) == 0 || data.byte(kLocation) == 42)
data.word(kTextfile1) = standardLoad("DREAMWEB.T01"); // monitor file 1

View File

@ -3779,4 +3779,10 @@ void DreamGenContext::examineInventory() {
workToScreenM();
}
void DreamGenContext::showArrows() {
showFrame(tempGraphics(), 116 - 12, 16, 0, 0);
showFrame(tempGraphics(), 226 + 12, 16, 1, 0);
showFrame(tempGraphics(), 280, 14, 2, 0);
}
} // End of namespace DreamGen

View File

@ -558,5 +558,7 @@
void getTime();
void set16ColPalette();
void examineInventory();
void printOuterMon();
void showArrows();
#endif