aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authoruruk2013-07-24 13:11:24 +0200
committeruruk2013-07-24 13:11:24 +0200
commitbddc0e5cbf1046aef3d6dfe543954477791d4b3b (patch)
tree1d6a71bd90b3604a22c5a42d2a425212cacf0078 /engines
parent3058a02ab9d3c8791768fb7b60556e61d2414f8c (diff)
downloadscummvm-rg350-bddc0e5cbf1046aef3d6dfe543954477791d4b3b.tar.gz
scummvm-rg350-bddc0e5cbf1046aef3d6dfe543954477791d4b3b.tar.bz2
scummvm-rg350-bddc0e5cbf1046aef3d6dfe543954477791d4b3b.zip
AVALANCHE: Move handleMoveKey() from Avalot to Trip.
Diffstat (limited to 'engines')
-rw-r--r--engines/avalanche/avalot.cpp6
-rw-r--r--engines/avalanche/avalot.h2
-rw-r--r--engines/avalanche/trip6.cpp7
-rw-r--r--engines/avalanche/trip6.h5
4 files changed, 14 insertions, 6 deletions
diff --git a/engines/avalanche/avalot.cpp b/engines/avalanche/avalot.cpp
index 0dcfd8420d..7b315b3c07 100644
--- a/engines/avalanche/avalot.cpp
+++ b/engines/avalanche/avalot.cpp
@@ -164,16 +164,12 @@ void Avalot::handleKeyDown(const Common::Event &event) {
case Common::KEYCODE_PAGEDOWN:
case Common::KEYCODE_HOME:
case Common::KEYCODE_END:
- handleMoveKey(event); // Fallthroughs are intended.
+ _vm->_trip.handleMoveKey(event); // Fallthroughs are intended.
break;
}
}
-void Avalot::handleMoveKey(const Common::Event &event) {
- warning("STUB: Avalot::handleMoveKey()");
-}
-
void Avalot::run(Common::String arg) {
diff --git a/engines/avalanche/avalot.h b/engines/avalanche/avalot.h
index 502358ede2..24ee4fe03e 100644
--- a/engines/avalanche/avalot.h
+++ b/engines/avalanche/avalot.h
@@ -46,7 +46,7 @@ public:
void handleKeyDown(const Common::Event &event);
- void handleMoveKey(const Common::Event &event); // To replace Trip::tripkey().
+
diff --git a/engines/avalanche/trip6.cpp b/engines/avalanche/trip6.cpp
index 5f04ebca57..b90c50009b 100644
--- a/engines/avalanche/trip6.cpp
+++ b/engines/avalanche/trip6.cpp
@@ -1567,4 +1567,11 @@ void Trip::new_game_for_trippancy() { /* Called by gyro.newgame */
tr[1].visible = false;
}
+
+
+void Trip::handleMoveKey(const Common::Event &event) {
+ warning("STUB: Avalot::handleMoveKey()");
+}
+
+
} // End of namespace Avalanche.
diff --git a/engines/avalanche/trip6.h b/engines/avalanche/trip6.h
index c202b76530..bd9b00a608 100644
--- a/engines/avalanche/trip6.h
+++ b/engines/avalanche/trip6.h
@@ -223,6 +223,11 @@ public:
void take_a_step(byte &tripnum);
+
+
+ void handleMoveKey(const Common::Event &event); // To replace tripkey().
+
+
triptype tr[numtr];
getsettype getset[2];
byte aa[1600];