diff options
author | Strangerke | 2011-12-18 00:37:01 +0100 |
---|---|---|
committer | Strangerke | 2011-12-18 00:37:01 +0100 |
commit | 2e8490448e4add482d622fe2e83b5125372aa67d (patch) | |
tree | 0e51fe725bbd4db7c465dad616f2eda783562389 /engines/tsage/ringworld2 | |
parent | 656409c72bd4142781fc369a496b026edb2cb87c (diff) | |
download | scummvm-rg350-2e8490448e4add482d622fe2e83b5125372aa67d.tar.gz scummvm-rg350-2e8490448e4add482d622fe2e83b5125372aa67d.tar.bz2 scummvm-rg350-2e8490448e4add482d622fe2e83b5125372aa67d.zip |
TSAGE: R2R - Scene 2800: Move several objects from scene to action2
Diffstat (limited to 'engines/tsage/ringworld2')
-rw-r--r-- | engines/tsage/ringworld2/ringworld2_scenes2.cpp | 82 | ||||
-rw-r--r-- | engines/tsage/ringworld2/ringworld2_scenes2.h | 6 |
2 files changed, 44 insertions, 44 deletions
diff --git a/engines/tsage/ringworld2/ringworld2_scenes2.cpp b/engines/tsage/ringworld2/ringworld2_scenes2.cpp index a61ff6ac9a..b851ed4e22 100644 --- a/engines/tsage/ringworld2/ringworld2_scenes2.cpp +++ b/engines/tsage/ringworld2/ringworld2_scenes2.cpp @@ -4234,47 +4234,47 @@ void Scene2800::Action2::signal() { R2_GLOBALS._sound2.stop(); break; case 1: - scene->_object2.postInit(); - scene->_object2.setVisage(2800); - scene->_object2.setStrip(1); - scene->_object2._numFrames = 8; - scene->_object2._moveRate = 8; - scene->_object2.changeZoom(100); - scene->_object2.setPosition(Common::Point(1, 1)); - scene->_object2.show(); - scene->_object2.animate(ANIM_MODE_5, this); + _object2.postInit(); + _object2.setVisage(2800); + _object2.setStrip(1); + _object2._numFrames = 8; + _object2._moveRate = 8; + _object2.changeZoom(100); + _object2.setPosition(Common::Point(1, 1)); + _object2.show(); + _object2.animate(ANIM_MODE_5, this); break; case 2: R2_GLOBALS._sound2.play(130); - scene->_object2.setVisage(2800); - scene->_object2.setStrip(7); - - scene->_object3.postInit(); - scene->_object3.setVisage(2800); - scene->_object3.setStrip(3); - scene->_object3._numFrames = 8; - scene->_object3._moveRate = 8; - scene->_object3.changeZoom(100); - scene->_object3.setPosition(Common::Point(300, 104)); - scene->_object3.show(); - scene->_object3.animate(ANIM_MODE_5, this); + _object2.setVisage(2800); + _object2.setStrip(7); + + _object3.postInit(); + _object3.setVisage(2800); + _object3.setStrip(3); + _object3._numFrames = 8; + _object3._moveRate = 8; + _object3.changeZoom(100); + _object3.setPosition(Common::Point(300, 104)); + _object3.show(); + _object3.animate(ANIM_MODE_5, this); break; case 3: R2_GLOBALS._sound1.play(241); - scene->_object4.postInit(); - scene->_object4.setVisage(2800); - scene->_object4.setStrip(2); - scene->_object4._numFrames = 4; - scene->_object4._moveRate = 4; - scene->_object4.changeZoom(100); - scene->_object4.setPosition(Common::Point(300, 104)); - scene->_object4.fixPriority(105); - scene->_object4.show(); - scene->_object4.animate(ANIM_MODE_5, this); + _object4.postInit(); + _object4.setVisage(2800); + _object4.setStrip(2); + _object4._numFrames = 4; + _object4._moveRate = 4; + _object4.changeZoom(100); + _object4.setPosition(Common::Point(300, 104)); + _object4.fixPriority(105); + _object4.show(); + _object4.animate(ANIM_MODE_5, this); break; case 4: setDelay(18); - scene->_object4.setStrip(4); + _object4.setStrip(4); scene->_actor1.setVisage(2800); scene->_actor1.setStrip(5); scene->_actor1.setFrame(1); @@ -4389,23 +4389,23 @@ void Scene2800::Action2::signal() { break; case 17: setDelay(6); - scene->_object4.setStrip(2); - scene->_object4.setFrame(11); + _object4.setStrip(2); + _object4.setFrame(11); R2_GLOBALS._player.hide(); // No break on purpose case 18: R2_GLOBALS._sound1.play(241); - scene->_object4.animate(ANIM_MODE_6, this); + _object4.animate(ANIM_MODE_6, this); break; case 19: - scene->_object4.remove(); - scene->_object3.animate(ANIM_MODE_6, this); + _object4.remove(); + _object3.animate(ANIM_MODE_6, this); break; case 20: setDelay(6); - scene->_object3.remove(); - scene->_object2.setStrip(1); - scene->_object2.setFrame(19); + _object3.remove(); + _object2.setStrip(1); + _object2.setFrame(19); break; case 21: setDelay(150); @@ -4414,7 +4414,7 @@ void Scene2800::Action2::signal() { break; case 22: scene->_sceneMode = 12; - scene->_object2.animate(ANIM_MODE_6, scene); + _object2.animate(ANIM_MODE_6, scene); break; default: break; diff --git a/engines/tsage/ringworld2/ringworld2_scenes2.h b/engines/tsage/ringworld2/ringworld2_scenes2.h index 2097465a48..d007f7e9f5 100644 --- a/engines/tsage/ringworld2/ringworld2_scenes2.h +++ b/engines/tsage/ringworld2/ringworld2_scenes2.h @@ -639,6 +639,9 @@ class Scene2800 : public SceneExt { void signal(); }; class Action2: public Action { + SceneObject _object2; + SceneObject _object3; + SceneObject _object4; public: void signal(); }; @@ -654,9 +657,6 @@ public: SceneObject _object1; Action1 _action1; Action2 _action2; - SceneObject _object2; - SceneObject _object3; - SceneObject _object4; SequenceManager _sequenceManager; int _field412; |