aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/stubs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/dreamweb/stubs.cpp')
-rw-r--r--engines/dreamweb/stubs.cpp75
1 files changed, 0 insertions, 75 deletions
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp
index 762a48af3f..7d809f2ca0 100644
--- a/engines/dreamweb/stubs.cpp
+++ b/engines/dreamweb/stubs.cpp
@@ -624,24 +624,6 @@ void DreamGenContext::eraseoldobs() {
}
}
-void DreamGenContext::turnpathonCPP(uint8 param) {
- al = param;
- push(es);
- push(bx);
- turnpathon();
- bx = pop();
- es = pop();
-}
-
-void DreamGenContext::turnpathoffCPP(uint8 param) {
- al = param;
- push(es);
- push(bx);
- turnpathoff();
- bx = pop();
- es = pop();
-}
-
void DreamGenContext::modifychar() {
al = engine->modifyChar(al);
}
@@ -685,16 +667,6 @@ void DreamGenContext::cancelch1() {
engine->stopSound(1);
}
-void DreamGenContext::getroomspaths() {
- es = data.word(kReels);
- bx = data.byte(kRoomnum) * 144;
-}
-
-uint8 *DreamGenContext::getroomspathsCPP() {
- void *result = segRef(data.word(kReels)).ptr(data.byte(kRoomnum) * 144, 144);
- return (uint8 *)result;
-}
-
void DreamGenContext::makebackob(ObjData *objData) {
if (data.byte(kNewobs) == 0)
return;
@@ -950,47 +922,6 @@ void DreamGenContext::commandonly(uint8 command) {
data.byte(kNewtextline) = 1;
}
-void DreamGenContext::autosetwalk() {
- al = data.byte(kManspath);
- if (data.byte(kFinaldest) == al)
- return;
- const uint8 *roomsPaths = getroomspathsCPP();
- checkdest(roomsPaths);
- data.word(kLinestartx) = roomsPaths[data.byte(kManspath) * 8 + 0] - 12;
- data.word(kLinestarty) = roomsPaths[data.byte(kManspath) * 8 + 1] - 12;
- data.word(kLineendx) = roomsPaths[data.byte(kDestination) * 8 + 0] - 12;
- data.word(kLineendy) = roomsPaths[data.byte(kDestination) * 8 + 1] - 12;
- bresenhams();
- if (data.byte(kLinedirection) != 0) {
- data.byte(kLinepointer) = data.byte(kLinelength) - 1;
- data.byte(kLinedirection) = 1;
- return;
- }
- data.byte(kLinepointer) = 0;
-}
-
-void DreamGenContext::checkdest(const uint8 *roomsPaths) {
- const uint8 *p = roomsPaths + 12 * 8;
- ah = data.byte(kManspath) << 4;
- al = data.byte(kDestination);
- uint8 destination = data.byte(kDestination);
- for (size_t i = 0; i < 24; ++i) {
- dh = p[0] & 0xf0;
- dl = p[0] & 0x0f;
- if (ax == dx) {
- data.byte(kDestination) = p[1] & 0x0f;
- return;
- }
- dl = (p[0] & 0xf0) >> 4;
- dh = (p[0] & 0x0f) << 4;
- if (ax == dx) {
- destination = p[1] & 0x0f;
- }
- p += 2;
- }
- data.byte(kDestination) = destination;
-}
-
void DreamGenContext::checkifperson() {
flags._z = not checkifperson(al, ah);
}
@@ -1110,12 +1041,6 @@ void DreamGenContext::walktotext() {
commandwithob(3, data.byte(kCommandtype), data.byte(kCommand));
}
-void DreamGenContext::findxyfrompath() {
- const uint8 *roomsPaths = getroomspathsCPP();
- data.byte(kRyanx) = roomsPaths[data.byte(kManspath) * 8 + 0] - 12;
- data.byte(kRyany) = roomsPaths[data.byte(kManspath) * 8 + 1] - 12;
-}
-
bool DreamGenContext::isCD() {
// The original sources has two codepaths depending if the game is 'if cd' or not
// This is a hack to guess which version to use with the assumption that if we have a cd version