aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2011-12-25 21:10:20 +0200
committerFilippos Karapetis2011-12-25 21:10:20 +0200
commit95c9a6d8cd93b7cbe921e391f207450f6082d99a (patch)
treef4f01300e886a955ebecf14a91fbb2a87bed9107 /engines
parente27a5931c811681590ced5df290e0c16f52aecc4 (diff)
downloadscummvm-rg350-95c9a6d8cd93b7cbe921e391f207450f6082d99a.tar.gz
scummvm-rg350-95c9a6d8cd93b7cbe921e391f207450f6082d99a.tar.bz2
scummvm-rg350-95c9a6d8cd93b7cbe921e391f207450f6082d99a.zip
DREAMWEB: Move all of the functions in newplace.cpp into DreamBase
Diffstat (limited to 'engines')
-rw-r--r--engines/dreamweb/dreambase.h4
-rw-r--r--engines/dreamweb/newplace.cpp18
-rw-r--r--engines/dreamweb/stubs.h4
3 files changed, 13 insertions, 13 deletions
diff --git a/engines/dreamweb/dreambase.h b/engines/dreamweb/dreambase.h
index e023d975a4..41409bc323 100644
--- a/engines/dreamweb/dreambase.h
+++ b/engines/dreamweb/dreambase.h
@@ -184,6 +184,10 @@ public:
void locationPic();
void selectLocation();
void newPlace();
+ void nextDest();
+ void lastDest();
+ void destSelect();
+ void lookAtPlace();
// from object.cpp
void obIcons();
diff --git a/engines/dreamweb/newplace.cpp b/engines/dreamweb/newplace.cpp
index e311f44ccc..4942804369 100644
--- a/engines/dreamweb/newplace.cpp
+++ b/engines/dreamweb/newplace.cpp
@@ -72,11 +72,11 @@ void DreamBase::selectLocation() {
if (data.byte(kGetback) == 1)
break;
- RectWithCallback<DreamGenContext> destList[] = {
- { 238,258,4,44,&DreamGenContext::nextDest },
- { 104,124,4,44,&DreamGenContext::lastDest },
- { 280,308,4,44,&DreamGenContext::lookAtPlace },
- { 104,216,138,192,&DreamGenContext::destSelect },
+ RectWithCallback<DreamBase> destList[] = {
+ { 238,258,4,44,&DreamBase::nextDest },
+ { 104,124,4,44,&DreamBase::lastDest },
+ { 280,308,4,44,&DreamBase::lookAtPlace },
+ { 104,216,138,192,&DreamBase::destSelect },
{ 273,320,157,198,&DreamBase::getBack1 },
{ 0,320,0,200,&DreamBase::blank },
{ 0xFFFF,0,0,0,0 }
@@ -101,7 +101,7 @@ void DreamBase::showCity() {
showFrame(tempGraphics(), 120+57, 32, 1, 0);
}
-void DreamGenContext::lookAtPlace() {
+void DreamBase::lookAtPlace() {
if (data.byte(kCommandtype) != 224) {
data.byte(kCommandtype) = 224;
commandOnly(27);
@@ -164,7 +164,7 @@ void DreamBase::showArrows() {
showFrame(tempGraphics(), 280, 14, 2, 0);
}
-void DreamGenContext::nextDest() {
+void DreamBase::nextDest() {
if (data.byte(kCommandtype) != 218) {
data.byte(kCommandtype) = 218;
commandOnly(28);
@@ -193,7 +193,7 @@ void DreamGenContext::nextDest() {
delPointer();
}
-void DreamGenContext::lastDest() {
+void DreamBase::lastDest() {
if (data.byte(kCommandtype) != 219) {
data.byte(kCommandtype) = 219;
commandOnly(29);
@@ -222,7 +222,7 @@ void DreamGenContext::lastDest() {
delPointer();
}
-void DreamGenContext::destSelect() {
+void DreamBase::destSelect() {
if (data.byte(kCommandtype) != 222) {
data.byte(kCommandtype) = 222;
commandOnly(30);
diff --git a/engines/dreamweb/stubs.h b/engines/dreamweb/stubs.h
index e447b705fb..148436e8a8 100644
--- a/engines/dreamweb/stubs.h
+++ b/engines/dreamweb/stubs.h
@@ -148,9 +148,6 @@
void errorMessage1();
void errorMessage2();
void errorMessage3();
- void nextDest();
- void lastDest();
- void destSelect();
void loadSpeech();
bool loadSpeech(byte type1, int idx1, byte type2, int idx2) {
return DreamBase::loadSpeech(type1, idx1, type2, idx2);
@@ -182,7 +179,6 @@
void setPickup();
void getKeyAndLogo();
void signOn();
- void lookAtPlace();
void inToInv();
void outOfInv();
void selectOpenOb();