aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2011-12-10 10:37:52 +0100
committerStrangerke2011-12-10 10:37:52 +0100
commit75478959ab5204f59b4b90793d8618d24fe6d2d8 (patch)
treee8ef30d1cd3531d65308423a90dc5f2fed978c58
parentc68d6ed585799300d4103acf275cb2e2ecf8e73c (diff)
downloadscummvm-rg350-75478959ab5204f59b4b90793d8618d24fe6d2d8.tar.gz
scummvm-rg350-75478959ab5204f59b4b90793d8618d24fe6d2d8.tar.bz2
scummvm-rg350-75478959ab5204f59b4b90793d8618d24fe6d2d8.zip
TSAGE: R2R - Implement scene 2445 (unused+broken?)
-rw-r--r--engines/tsage/ringworld2/ringworld2_logic.cpp2
-rw-r--r--engines/tsage/ringworld2/ringworld2_scenes2.cpp17
-rw-r--r--engines/tsage/ringworld2/ringworld2_scenes2.h8
3 files changed, 27 insertions, 0 deletions
diff --git a/engines/tsage/ringworld2/ringworld2_logic.cpp b/engines/tsage/ringworld2/ringworld2_logic.cpp
index 9b7272e6dc..ba624b9db3 100644
--- a/engines/tsage/ringworld2/ringworld2_logic.cpp
+++ b/engines/tsage/ringworld2/ringworld2_logic.cpp
@@ -116,6 +116,8 @@ Scene *Ringworld2Game::createScene(int sceneNumber) {
// Maze: Another bedroom
return new Scene2440();
case 2445:
+ // Maze:
+ return new Scene2445();
case 2450:
case 2455:
case 2500:
diff --git a/engines/tsage/ringworld2/ringworld2_scenes2.cpp b/engines/tsage/ringworld2/ringworld2_scenes2.cpp
index 0e824f6742..fdfc5fcbdc 100644
--- a/engines/tsage/ringworld2/ringworld2_scenes2.cpp
+++ b/engines/tsage/ringworld2/ringworld2_scenes2.cpp
@@ -1908,5 +1908,22 @@ void Scene2440::signal() {
}
}
+/*--------------------------------------------------------------------------
+ * Scene 2445 - Maze:
+ *
+ *--------------------------------------------------------------------------*/
+void Scene2445::postInit(SceneObjectList *OwnerList) {
+ loadScene(2445);
+ SceneExt::postInit();
+ R2_GLOBALS._player.postInit();
+ R2_GLOBALS._player.animate(ANIM_MODE_1, NULL);
+ R2_GLOBALS._player.setVisage(10);
+ R2_GLOBALS._player.setPosition(Common::Point(160, 140));
+ R2_GLOBALS._player.disableControl();
+}
+
+void Scene2445::signal() {
+ R2_GLOBALS._player.enableControl();
+}
} // End of namespace Ringworld2
} // End of namespace TsAGE
diff --git a/engines/tsage/ringworld2/ringworld2_scenes2.h b/engines/tsage/ringworld2/ringworld2_scenes2.h
index 1fef5a8c78..fa7a641114 100644
--- a/engines/tsage/ringworld2/ringworld2_scenes2.h
+++ b/engines/tsage/ringworld2/ringworld2_scenes2.h
@@ -290,6 +290,14 @@ public:
virtual void remove();
virtual void signal();
};
+
+class Scene2445 : public SceneExt {
+public:
+ SequenceManager _sequenceManager;
+
+ virtual void postInit(SceneObjectList *OwnerList = NULL);
+ virtual void signal();
+};
} // End of namespace Ringworld2
} // End of namespace TsAGE