aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2011-12-08 10:52:15 +0200
committerFilippos Karapetis2011-12-08 10:52:15 +0200
commit67fb3dcd5e886c88f6745816df4d106efeded5da (patch)
tree0cd1f4e6c72e20ae3e212792092c401e9d69712c
parent34b6935cda7b42f5721fcb476b0138aa524c520b (diff)
downloadscummvm-rg350-67fb3dcd5e886c88f6745816df4d106efeded5da.tar.gz
scummvm-rg350-67fb3dcd5e886c88f6745816df4d106efeded5da.tar.bz2
scummvm-rg350-67fb3dcd5e886c88f6745816df4d106efeded5da.zip
DREAMWEB: 'printoutermon', 'showarrows' ported to C++
-rwxr-xr-xdevtools/tasmrecover/tasm-recover2
-rw-r--r--engines/dreamweb/dreamgen.cpp50
-rw-r--r--engines/dreamweb/dreamgen.h2
-rw-r--r--engines/dreamweb/monitor.cpp7
-rw-r--r--engines/dreamweb/stubs.cpp6
-rw-r--r--engines/dreamweb/stubs.h2
6 files changed, 17 insertions, 52 deletions
diff --git a/devtools/tasmrecover/tasm-recover b/devtools/tasmrecover/tasm-recover
index b97cf5cd36..76cbca9a40 100755
--- a/devtools/tasmrecover/tasm-recover
+++ b/devtools/tasmrecover/tasm-recover
@@ -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',
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp
index aff617e5ad..8fc7ca1f5e 100644
--- a/engines/dreamweb/dreamgen.cpp
+++ b/engines/dreamweb/dreamgen.cpp
@@ -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';
diff --git a/engines/dreamweb/dreamgen.h b/engines/dreamweb/dreamgen.h
index a981fd8d78..39711a4ee9 100644
--- a/engines/dreamweb/dreamgen.h
+++ b/engines/dreamweb/dreamgen.h
@@ -595,8 +595,6 @@ public:
void deleteExText();
void entryAnims();
void getFreeAd();
- void showArrows();
- void printOuterMon();
void showDecisions();
void removeObFromInv();
void heavy();
diff --git a/engines/dreamweb/monitor.cpp b/engines/dreamweb/monitor.cpp
index f552b71c00..40bf8ed1be 100644
--- a/engines/dreamweb/monitor.cpp
+++ b/engines/dreamweb/monitor.cpp
@@ -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
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp
index 7991742424..587346a898 100644
--- a/engines/dreamweb/stubs.cpp
+++ b/engines/dreamweb/stubs.cpp
@@ -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
diff --git a/engines/dreamweb/stubs.h b/engines/dreamweb/stubs.h
index 9e33b029c3..92a703bc63 100644
--- a/engines/dreamweb/stubs.h
+++ b/engines/dreamweb/stubs.h
@@ -558,5 +558,7 @@
void getTime();
void set16ColPalette();
void examineInventory();
+ void printOuterMon();
+ void showArrows();
#endif