aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/object.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2011-12-26 22:31:50 +0200
committerFilippos Karapetis2011-12-26 22:31:50 +0200
commit1ba4f0a1a8965ee141987693770d2bcd3b74c292 (patch)
tree219b94744b859c5acce9a92483dccf15bd0bb47d /engines/dreamweb/object.cpp
parent4c66f74b58e9a2c191f22a37f485047dd19be131 (diff)
downloadscummvm-rg350-1ba4f0a1a8965ee141987693770d2bcd3b74c292.tar.gz
scummvm-rg350-1ba4f0a1a8965ee141987693770d2bcd3b74c292.tar.bz2
scummvm-rg350-1ba4f0a1a8965ee141987693770d2bcd3b74c292.zip
Revert "DREAMWEB: Remove dead code and move most functions to DreamBase"
This reverts commit 4c66f74b58e9a2c191f22a37f485047dd19be131. These functions aren't ready to be moved yet till the remaining two are finished, and they're so crossreferenced that the safest thing to do is revert this commit and break it down to smaller chunks
Diffstat (limited to 'engines/dreamweb/object.cpp')
-rw-r--r--engines/dreamweb/object.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/engines/dreamweb/object.cpp b/engines/dreamweb/object.cpp
index 124a4f908d..4fa21e7618 100644
--- a/engines/dreamweb/object.cpp
+++ b/engines/dreamweb/object.cpp
@@ -78,6 +78,10 @@ void DreamBase::makeWorn(DynObject *object) {
object->id[1] = 'E'-'A';
}
+void DreamGenContext::obToInv() {
+ obToInv(al, ah, di, bx);
+}
+
void DreamBase::obToInv(uint8 index, uint8 flag, uint16 x, uint16 y) {
showFrame(engine->icons1(), x - 2, y - 1, 10, 0);
if (index == 0xff)
@@ -116,7 +120,7 @@ void DreamBase::obIcons() {
showFrame(engine->icons2(), 260, 1, 1, 0);
}
-void DreamBase::examineOb(bool examineAgain) {
+void DreamGenContext::examineOb(bool examineAgain) {
data.byte(kPointermode) = 0;
data.word(kTimecount) = 0;
@@ -213,7 +217,7 @@ void DreamBase::examineOb(bool examineAgain) {
data.byte(kOpenedob) = 255;
}
-void DreamBase::inventory() {
+void DreamGenContext::inventory() {
if (data.byte(kMandead) == 1 || data.word(kWatchingtime) != 0) {
blank();
return;
@@ -308,7 +312,7 @@ void DreamBase::openOb() {
_openChangeSize = getOpenedSlotCount() * kItempicsize + kInventx;
}
-void DreamBase::identifyOb() {
+void DreamGenContext::identifyOb() {
if (data.word(kWatchingtime) != 0) {
blank();
return;