aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/use.cpp
diff options
context:
space:
mode:
authorMax Horn2011-12-15 10:54:28 +0100
committerMax Horn2011-12-15 13:44:40 +0100
commit719f3ec1789005186c4cb86b10effa9ceee93866 (patch)
treed33555eabf735e17b6931623cb913adb0aa1f6a2 /engines/dreamweb/use.cpp
parentee43bfed74f313115fc9cb537f614f26fa3d6fa2 (diff)
downloadscummvm-rg350-719f3ec1789005186c4cb86b10effa9ceee93866.tar.gz
scummvm-rg350-719f3ec1789005186c4cb86b10effa9ceee93866.tar.bz2
scummvm-rg350-719f3ec1789005186c4cb86b10effa9ceee93866.zip
DREAMWEB: Convert a bunch of stuff to C++
Specifically, I started with openOb() and withWhat() which allowed to remove offset_commandline and offset_openchangesize. A clean conversion of these required a conversion of printMessage2 and getOpenedSize.
Diffstat (limited to 'engines/dreamweb/use.cpp')
-rw-r--r--engines/dreamweb/use.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/engines/dreamweb/use.cpp b/engines/dreamweb/use.cpp
index 5306522c13..87b3640e03 100644
--- a/engines/dreamweb/use.cpp
+++ b/engines/dreamweb/use.cpp
@@ -1473,4 +1473,27 @@ void DreamGenContext::useAltar() {
}
}
+void DreamGenContext::withWhat() {
+ uint8 commandLine[64] = "OBJECT NAME ONE ";
+
+ createPanel();
+ showPanel();
+ showMan();
+ showExit();
+
+ copyName(data.byte(kObjecttype), data.byte(kCommand), commandLine);
+ printMessage2(100, 21, 63, 200, false, 2);
+ printDirect(commandLine, data.word(kLastxpos) + 5, 21, 220, false);
+ printMessage2(data.word(kLastxpos) + 5, 21, 63, 200, false, 3);
+
+ fillRyan();
+ data.byte(kCommandtype) = 255;
+ readMouse();
+ showPointer();
+ workToScreen();
+ delPointer();
+ data.byte(kInvopen) = 2;
+}
+
+
} // End of namespace DreamGen