diff options
author | Paul Gilbert | 2011-08-14 20:18:32 +1000 |
---|---|---|
committer | Paul Gilbert | 2011-08-14 20:18:32 +1000 |
commit | da76e6133680d23b01ca2d361fae1f95018dab10 (patch) | |
tree | a392b939fea7bf8d363671f0cd9e4b2d71dbce81 /engines/tsage/ringworld | |
parent | a6e638de6e558a6d4f760c7c425d6df29f4090c9 (diff) | |
download | scummvm-rg350-da76e6133680d23b01ca2d361fae1f95018dab10.tar.gz scummvm-rg350-da76e6133680d23b01ca2d361fae1f95018dab10.tar.bz2 scummvm-rg350-da76e6133680d23b01ca2d361fae1f95018dab10.zip |
TSAGE: Separated Ringworld and Blue Force game logic into their own namespaces
Diffstat (limited to 'engines/tsage/ringworld')
20 files changed, 61 insertions, 41 deletions
diff --git a/engines/tsage/ringworld/ringworld_demo.cpp b/engines/tsage/ringworld/ringworld_demo.cpp index ce06df8e80..02203e4ffe 100644 --- a/engines/tsage/ringworld/ringworld_demo.cpp +++ b/engines/tsage/ringworld/ringworld_demo.cpp @@ -25,7 +25,7 @@ #include "tsage/tsage.h" #include "tsage/staticres.h" -namespace tSage { +namespace tSage_Ringworld { void RingworldDemoGame::start() { // Start the demo's single scene @@ -117,4 +117,4 @@ void RingworldDemoScene::process(Event &event) { } -} // End of namespace tSage +} // End of namespace tSage_Ringworld diff --git a/engines/tsage/ringworld/ringworld_demo.h b/engines/tsage/ringworld/ringworld_demo.h index 3e7431e107..f9c9fcbfa1 100644 --- a/engines/tsage/ringworld/ringworld_demo.h +++ b/engines/tsage/ringworld/ringworld_demo.h @@ -30,7 +30,9 @@ #include "tsage/globals.h" #include "tsage/sound.h" -namespace tSage { +namespace tSage_Ringworld { + +using namespace tSage; class RingworldDemoGame: public Game { private: @@ -54,6 +56,6 @@ public: virtual void signal(); }; -} // End of namespace tSage +} // End of namespace tSage_Ringworld #endif diff --git a/engines/tsage/ringworld/ringworld_logic.cpp b/engines/tsage/ringworld/ringworld_logic.cpp index 99890c90ff..8bf0ded996 100644 --- a/engines/tsage/ringworld/ringworld_logic.cpp +++ b/engines/tsage/ringworld/ringworld_logic.cpp @@ -37,7 +37,7 @@ #include "tsage/ringworld/ringworld_scenes8.h" #include "tsage/ringworld/ringworld_scenes10.h" -namespace tSage { +namespace tSage_Ringworld { Scene *RingworldGame::createScene(int sceneNumber) { switch (sceneNumber) { @@ -1487,4 +1487,4 @@ void RingworldGame::processEvent(Event &event) { } } -} // End of namespace tSage +} // End of namespace tSage_Ringworld diff --git a/engines/tsage/ringworld/ringworld_logic.h b/engines/tsage/ringworld/ringworld_logic.h index 19b0f10b42..0ff5428e8a 100644 --- a/engines/tsage/ringworld/ringworld_logic.h +++ b/engines/tsage/ringworld/ringworld_logic.h @@ -29,7 +29,9 @@ #include "tsage/scenes.h" #include "tsage/globals.h" -namespace tSage { +namespace tSage_Ringworld { + +using namespace tSage; #define ADD_PLAYER_MOVER(X, Y) { Common::Point pt(X, Y); PlayerMover *mover = new PlayerMover(); \ _globals->_player.addMover(mover, &pt, this); } @@ -438,7 +440,7 @@ public: virtual Common::String getClassName() { return "RingworldInvObjectList"; } }; -#define RING_INVENTORY (*((RingworldInvObjectList *)_globals->_inventory)) +#define RING_INVENTORY (*((tSage_Ringworld::RingworldInvObjectList *)_globals->_inventory)) class RingworldGame: public Game { protected: @@ -456,6 +458,6 @@ public: virtual void processEvent(Event &event); }; -} // End of namespace tSage +} // End of namespace tSage_Ringworld #endif diff --git a/engines/tsage/ringworld/ringworld_scenes1.cpp b/engines/tsage/ringworld/ringworld_scenes1.cpp index 880fa51e6e..c87b9ab972 100644 --- a/engines/tsage/ringworld/ringworld_scenes1.cpp +++ b/engines/tsage/ringworld/ringworld_scenes1.cpp @@ -25,7 +25,7 @@ #include "tsage/tsage.h" #include "tsage/staticres.h" -namespace tSage { +namespace tSage_Ringworld { /*-------------------------------------------------------------------------- * Scene 10 - Kziniti Palace (Introduction) @@ -3342,4 +3342,4 @@ void Scene6100::showMessage(const Common::String &msg, int color, Action *action } } -} // End of namespace tSage +} // End of namespace tSage_Ringworld diff --git a/engines/tsage/ringworld/ringworld_scenes1.h b/engines/tsage/ringworld/ringworld_scenes1.h index dd64e563cd..7d93eb6483 100644 --- a/engines/tsage/ringworld/ringworld_scenes1.h +++ b/engines/tsage/ringworld/ringworld_scenes1.h @@ -32,7 +32,9 @@ #include "tsage/globals.h" #include "tsage/sound.h" -namespace tSage { +namespace tSage_Ringworld { + +using namespace tSage; class Scene10 : public Scene { /* Actions */ @@ -533,6 +535,6 @@ public: }; -} // End of namespace tSage +} // End of namespace tSage_Ringworld #endif diff --git a/engines/tsage/ringworld/ringworld_scenes10.cpp b/engines/tsage/ringworld/ringworld_scenes10.cpp index 1cff5d0aaf..e7461ba10e 100644 --- a/engines/tsage/ringworld/ringworld_scenes10.cpp +++ b/engines/tsage/ringworld/ringworld_scenes10.cpp @@ -26,7 +26,7 @@ #include "tsage/tsage.h" #include "tsage/staticres.h" -namespace tSage { +namespace tSage_Ringworld { Scene2::Scene2() : Scene() { _sceneState = 0; @@ -2086,4 +2086,4 @@ void Scene9999::postInit(SceneObjectList *OwnerList) { } -} // End of namespace tSage +} // End of namespace tSage_Ringworld diff --git a/engines/tsage/ringworld/ringworld_scenes10.h b/engines/tsage/ringworld/ringworld_scenes10.h index 792234cc91..54a3bfcdd0 100644 --- a/engines/tsage/ringworld/ringworld_scenes10.h +++ b/engines/tsage/ringworld/ringworld_scenes10.h @@ -30,7 +30,9 @@ #include "tsage/scenes.h" #include "tsage/globals.h" -namespace tSage { +namespace tSage_Ringworld { + +using namespace tSage; class SceneObject9150 : public SceneObject { public: @@ -527,6 +529,6 @@ public: }; -} // End of namespace tSage +} // End of namespace tSage_Ringworld #endif diff --git a/engines/tsage/ringworld/ringworld_scenes2.cpp b/engines/tsage/ringworld/ringworld_scenes2.cpp index 2dadaf4c30..7091a9510c 100644 --- a/engines/tsage/ringworld/ringworld_scenes2.cpp +++ b/engines/tsage/ringworld/ringworld_scenes2.cpp @@ -26,7 +26,7 @@ #include "tsage/tsage.h" #include "tsage/staticres.h" -namespace tSage { +namespace tSage_Ringworld { /*-------------------------------------------------------------------------- * Scene 1000 - Title Screen @@ -925,4 +925,4 @@ void Scene1500::postInit(SceneObjectList *OwnerList) { } } -} // End of namespace tSage +} // End of namespace tSage_Ringworld diff --git a/engines/tsage/ringworld/ringworld_scenes2.h b/engines/tsage/ringworld/ringworld_scenes2.h index ef3158bbb9..c066c41633 100644 --- a/engines/tsage/ringworld/ringworld_scenes2.h +++ b/engines/tsage/ringworld/ringworld_scenes2.h @@ -30,7 +30,9 @@ #include "tsage/scenes.h" #include "tsage/globals.h" -namespace tSage { +namespace tSage_Ringworld { + +using namespace tSage; class Scene1000 : public Scene { /* Actions */ @@ -144,6 +146,6 @@ public: -} // End of namespace tSage +} // End of namespace tSage_Ringworld #endif diff --git a/engines/tsage/ringworld/ringworld_scenes3.cpp b/engines/tsage/ringworld/ringworld_scenes3.cpp index 3d8f151c35..238652f4dd 100644 --- a/engines/tsage/ringworld/ringworld_scenes3.cpp +++ b/engines/tsage/ringworld/ringworld_scenes3.cpp @@ -26,7 +26,7 @@ #include "tsage/tsage.h" #include "tsage/staticres.h" -namespace tSage { +namespace tSage_Ringworld { /*-------------------------------------------------------------------------- * Scene 2000 - Cockpit cutscenes @@ -6130,4 +6130,4 @@ void Scene2400::postInit(SceneObjectList *OwnerList) { _globals->_soundHandler.play(153); } -} // End of namespace tSage +} // End of namespace tSage_Ringworld diff --git a/engines/tsage/ringworld/ringworld_scenes3.h b/engines/tsage/ringworld/ringworld_scenes3.h index 4f8f559091..bd8fe28d43 100644 --- a/engines/tsage/ringworld/ringworld_scenes3.h +++ b/engines/tsage/ringworld/ringworld_scenes3.h @@ -28,7 +28,9 @@ #include "tsage/converse.h" #include "tsage/ringworld/ringworld_logic.h" -namespace tSage { +namespace tSage_Ringworld { + +using namespace tSage; class Scene2000 : public Scene { /* Actions */ @@ -890,6 +892,6 @@ public: virtual void postInit(SceneObjectList *OwnerList = NULL); }; -} // End of namespace tSage +} // End of namespace tSage_Ringworld #endif diff --git a/engines/tsage/ringworld/ringworld_scenes4.cpp b/engines/tsage/ringworld/ringworld_scenes4.cpp index 83dd559a6d..543c17b693 100644 --- a/engines/tsage/ringworld/ringworld_scenes4.cpp +++ b/engines/tsage/ringworld/ringworld_scenes4.cpp @@ -26,7 +26,7 @@ #include "tsage/tsage.h" #include "tsage/staticres.h" -namespace tSage { +namespace tSage_Ringworld { /*-------------------------------------------------------------------------- * Scene 3500 - Ringworld Scan @@ -247,4 +247,4 @@ void Scene3700::postInit(tSage::SceneObjectList *OwnerList) { _globals->_soundHandler.play(195); } -} // End of namespace tSage +} // End of namespace tSage_Ringworld diff --git a/engines/tsage/ringworld/ringworld_scenes4.h b/engines/tsage/ringworld/ringworld_scenes4.h index 6c706d2dab..ccad604204 100644 --- a/engines/tsage/ringworld/ringworld_scenes4.h +++ b/engines/tsage/ringworld/ringworld_scenes4.h @@ -28,7 +28,9 @@ #include "tsage/converse.h" #include "tsage/ringworld/ringworld_logic.h" -namespace tSage { +namespace tSage_Ringworld { + +using namespace tSage; class Scene3500 : public Scene { /* Actions */ @@ -87,6 +89,6 @@ public: virtual void postInit(SceneObjectList *OwnerList = NULL); }; -} // End of namespace tSage +} // End of namespace tSage_Ringworld #endif diff --git a/engines/tsage/ringworld/ringworld_scenes5.cpp b/engines/tsage/ringworld/ringworld_scenes5.cpp index 0803a2039a..bdb04161ad 100644 --- a/engines/tsage/ringworld/ringworld_scenes5.cpp +++ b/engines/tsage/ringworld/ringworld_scenes5.cpp @@ -26,7 +26,7 @@ #include "tsage/tsage.h" #include "tsage/staticres.h" -namespace tSage { +namespace tSage_Ringworld { /*-------------------------------------------------------------------------- * Scene 4000 - Village @@ -4438,4 +4438,4 @@ void Scene4301::dispatch() { } } -} // End of namespace tSage +} // End of namespace tSage_Ringworld diff --git a/engines/tsage/ringworld/ringworld_scenes5.h b/engines/tsage/ringworld/ringworld_scenes5.h index d28e809678..49e4b95dba 100644 --- a/engines/tsage/ringworld/ringworld_scenes5.h +++ b/engines/tsage/ringworld/ringworld_scenes5.h @@ -28,7 +28,9 @@ #include "tsage/converse.h" #include "tsage/ringworld/ringworld_logic.h" -namespace tSage { +namespace tSage_Ringworld { + +using namespace tSage; class Scene4000 : public Scene { /* Actions */ @@ -688,6 +690,6 @@ public: }; -} // End of namespace tSage +} // End of namespace tSage_Ringworld #endif diff --git a/engines/tsage/ringworld/ringworld_scenes6.cpp b/engines/tsage/ringworld/ringworld_scenes6.cpp index 6b335fe7c3..f1b7310938 100644 --- a/engines/tsage/ringworld/ringworld_scenes6.cpp +++ b/engines/tsage/ringworld/ringworld_scenes6.cpp @@ -25,7 +25,7 @@ #include "tsage/tsage.h" #include "tsage/staticres.h" -namespace tSage { +namespace tSage_Ringworld { /*-------------------------------------------------------------------------- * Scene 5000 - Caverns - Entrance @@ -2197,4 +2197,4 @@ void Scene5300::signal() { } -} // End of namespace tSage +} // End of namespace tSage_Ringworld diff --git a/engines/tsage/ringworld/ringworld_scenes6.h b/engines/tsage/ringworld/ringworld_scenes6.h index db6efd0e18..976c477077 100644 --- a/engines/tsage/ringworld/ringworld_scenes6.h +++ b/engines/tsage/ringworld/ringworld_scenes6.h @@ -30,7 +30,9 @@ #include "tsage/scenes.h" #include "tsage/globals.h" -namespace tSage { +namespace tSage_Ringworld { + +using namespace tSage; class Scene5000 : public Scene { /* Actions */ @@ -325,6 +327,6 @@ public: }; -} // End of namespace tSage +} // End of namespace tSage_Ringworld #endif diff --git a/engines/tsage/ringworld/ringworld_scenes8.cpp b/engines/tsage/ringworld/ringworld_scenes8.cpp index 5b01bb2c58..15f469afea 100644 --- a/engines/tsage/ringworld/ringworld_scenes8.cpp +++ b/engines/tsage/ringworld/ringworld_scenes8.cpp @@ -26,7 +26,7 @@ #include "tsage/tsage.h" #include "tsage/staticres.h" -namespace tSage { +namespace tSage_Ringworld { void NamedHotspotMult::synchronize(Serializer &s) { SceneHotspot::synchronize(s); @@ -2542,4 +2542,4 @@ void Scene7700::synchronize(Serializer &s) { } } -} // End of namespace tSage +} // End of namespace tSage_Ringworld diff --git a/engines/tsage/ringworld/ringworld_scenes8.h b/engines/tsage/ringworld/ringworld_scenes8.h index e4f82fc164..defb2870f1 100644 --- a/engines/tsage/ringworld/ringworld_scenes8.h +++ b/engines/tsage/ringworld/ringworld_scenes8.h @@ -30,7 +30,9 @@ #include "tsage/scenes.h" #include "tsage/globals.h" -namespace tSage { +namespace tSage_Ringworld { + +using namespace tSage; class NamedHotspotMult : public SceneHotspot { public: @@ -485,6 +487,6 @@ public: virtual void synchronize(Serializer &s); }; -} // End of namespace tSage +} // End of namespace tSage_Ringworld #endif |