diff options
Diffstat (limited to 'engines/dreamweb/stubs.cpp')
-rw-r--r-- | engines/dreamweb/stubs.cpp | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp index c755b93dec..1a0c07cea5 100644 --- a/engines/dreamweb/stubs.cpp +++ b/engines/dreamweb/stubs.cpp @@ -1266,7 +1266,7 @@ void DreamGenContext::commandWithOb() { commandWithOb(al, bh, bl); } -void DreamGenContext::commandWithOb(uint8 command, uint8 type, uint8 index) { +void DreamBase::commandWithOb(uint8 command, uint8 type, uint8 index) { uint8 commandLine[64] = "OBJECT NAME ONE "; delTextLine(); uint16 commandText = kTextstart + getSegment(data.word(kCommandtext)).word(command * 2); @@ -1283,19 +1283,19 @@ void DreamGenContext::commandWithOb(uint8 command, uint8 type, uint8 index) { data.byte(kNewtextline) = 1; } -void DreamGenContext::examineObText() { +void DreamBase::examineObText() { commandWithOb(1, data.byte(kCommandtype), data.byte(kCommand)); } -void DreamGenContext::blockNameText() { +void DreamBase::blockNameText() { commandWithOb(0, data.byte(kCommandtype), data.byte(kCommand)); } -void DreamGenContext::personNameText() { +void DreamBase::personNameText() { commandWithOb(2, data.byte(kCommandtype), data.byte(kCommand) & 127); } -void DreamGenContext::walkToText() { +void DreamBase::walkToText() { commandWithOb(3, data.byte(kCommandtype), data.byte(kCommand)); } @@ -1446,10 +1446,6 @@ void DreamGenContext::walkAndExamine() { examineOb(); } -void DreamGenContext::obName() { - obName(al, ah); -} - void DreamGenContext::obName(uint8 command, uint8 commandType) { if (data.byte(kReasseschanges) == 0) { if ((commandType == data.byte(kCommandtype)) && (command == data.byte(kCommand))) { @@ -1796,19 +1792,15 @@ void DreamBase::showIcon() { } } -void DreamGenContext::checkIfSet() { - flags._z = !checkIfSet(al, ah); -} - bool DreamGenContext::checkIfSet(uint8 x, uint8 y) { const ObjPos *setList = (const ObjPos *)getSegment(data.word(kBuffers)).ptr(kSetlist, sizeof(ObjPos) * 128); for (size_t i = 0; i < 128; ++i) { const ObjPos *pos = setList + 127 - i; if (pos->index == 0xff || !pos->contains(x,y)) continue; - if (! pixelCheckSet(pos, x, y)) + if (!pixelCheckSet(pos, x, y)) continue; - if (! isItDescribed(pos)) + if (!isItDescribed(pos)) continue; obName(pos->index, 1); return true; @@ -1843,10 +1835,6 @@ void DreamBase::hangOnW(uint16 frameCount) { } } -void DreamGenContext::hangOnP() { - hangOnP(cx); -} - void DreamBase::hangOnP(uint16 count) { data.word(kMaintimer) = 0; uint8 pointerFrame = data.byte(kPointerframe); |