From bddc0e5cbf1046aef3d6dfe543954477791d4b3b Mon Sep 17 00:00:00 2001 From: uruk Date: Wed, 24 Jul 2013 13:11:24 +0200 Subject: AVALANCHE: Move handleMoveKey() from Avalot to Trip. --- engines/avalanche/avalot.cpp | 6 +----- engines/avalanche/avalot.h | 2 +- engines/avalanche/trip6.cpp | 7 +++++++ engines/avalanche/trip6.h | 5 +++++ 4 files changed, 14 insertions(+), 6 deletions(-) (limited to 'engines') 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]; -- cgit v1.2.3