diff options
author | Paul Gilbert | 2013-09-14 17:39:34 -0400 |
---|---|---|
committer | Paul Gilbert | 2013-09-14 17:39:34 -0400 |
commit | 31d26440bd8772fbaf18d357e91298d972a4f48d (patch) | |
tree | df5326071723382a5820680f379fa844cbbde477 | |
parent | a76389c1d720068c4873b4543c30db159b97ee0c (diff) | |
download | scummvm-rg350-31d26440bd8772fbaf18d357e91298d972a4f48d.tar.gz scummvm-rg350-31d26440bd8772fbaf18d357e91298d972a4f48d.tar.bz2 scummvm-rg350-31d26440bd8772fbaf18d357e91298d972a4f48d.zip |
TSAGE: Further renaming for R2R balloon scene
-rw-r--r-- | engines/tsage/ringworld2/ringworld2_scenes2.cpp | 94 | ||||
-rw-r--r-- | engines/tsage/ringworld2/ringworld2_scenes2.h | 32 |
2 files changed, 63 insertions, 63 deletions
diff --git a/engines/tsage/ringworld2/ringworld2_scenes2.cpp b/engines/tsage/ringworld2/ringworld2_scenes2.cpp index 08d41ec4d2..d2c4f3d8c0 100644 --- a/engines/tsage/ringworld2/ringworld2_scenes2.cpp +++ b/engines/tsage/ringworld2/ringworld2_scenes2.cpp @@ -4546,7 +4546,7 @@ void Scene2800::signal() { * *--------------------------------------------------------------------------*/ -bool Scene2900::Item1::startAction(CursorType action, Event &event) { +bool Scene2900::Scenery::startAction(CursorType action, Event &event) { switch (action) { case CURSOR_USE: SceneItem::display2(1, 5 + R2_GLOBALS._randomSource.getRandomNumber(5)); @@ -4565,7 +4565,7 @@ bool Scene2900::Item1::startAction(CursorType action, Event &event) { return true; } -bool Scene2900::Item2::startAction(CursorType action, Event &event) { +bool Scene2900::ControlPanel::startAction(CursorType action, Event &event) { switch (action) { case CURSOR_USE: SceneItem::display2(2900, 5); @@ -4584,7 +4584,7 @@ bool Scene2900::Item2::startAction(CursorType action, Event &event) { return true; } -bool Scene2900::Item3::startAction(CursorType action, Event &event) { +bool Scene2900::Altimeter::startAction(CursorType action, Event &event) { switch (action) { case CURSOR_USE: SceneItem::display2(2900, 8); @@ -4603,7 +4603,7 @@ bool Scene2900::Item3::startAction(CursorType action, Event &event) { return true; } -bool Scene2900::Item4::startAction(CursorType action, Event &event) { +bool Scene2900::KnobLeft::startAction(CursorType action, Event &event) { Scene2900 *scene = (Scene2900 *)R2_GLOBALS._sceneManager._scene; switch (action) { @@ -4636,7 +4636,7 @@ bool Scene2900::Item4::startAction(CursorType action, Event &event) { return true; } -bool Scene2900::Item5::startAction(CursorType action, Event &event) { +bool Scene2900::KnobRight::startAction(CursorType action, Event &event) { Scene2900 *scene = (Scene2900 *)R2_GLOBALS._sceneManager._scene; switch (action) { @@ -4683,13 +4683,13 @@ void Scene2900::Action1::signal() { } else if (scene->_field427 == 0) { R2_GLOBALS._sound2.fadeOut2(NULL); } else if (scene->_field412 == 0) { - scene->_object6.hide(); - scene->_object5.hide(); + scene->_knobLeftContent.hide(); + scene->_knobRightContent.hide(); scene->_field412 = 1; } else { --scene->_field427; - scene->_object6.show(); - scene->_object5.show(); + scene->_knobLeftContent.show(); + scene->_knobRightContent.show(); scene->_field412 = 0; } } @@ -4941,37 +4941,37 @@ void Scene2900::postInit(SceneObjectList *OwnerList) { loadScene(2900); SceneExt::postInit(); - _leftEdge.setup2(2900, 6, 1, 22, 0, 25, 0); - _rightEdge.setup2(2900, 6, 1, 280, 0, 25, 0); - _object3.setup2(2900, 1, 3, 228, 199, 25, 0); + _leftEdge.setup(2900, 6, 1, 22, 0, 25); + _rightEdge.setup(2900, 6, 1, 280, 0, 25); + _knob.setup(2900, 1, 3, 228, 199, 25); - _object4.postInit(); - _object4.setVisage(2900); - _object4.setStrip(2); - _object4.setFrame(1); - _object4.fixPriority(10); - - _object6.postInit(); - _object6.setVisage(2900); - _object6.setStrip(1); - _object6.setFrame(1); - _object6.setPosition(Common::Point(209, 199)); - _object6.fixPriority(200); + _altimeterContent.postInit(); + _altimeterContent.setVisage(2900); + _altimeterContent.setStrip(2); + _altimeterContent.setFrame(1); + _altimeterContent.fixPriority(10); + + _knobLeftContent.postInit(); + _knobLeftContent.setVisage(2900); + _knobLeftContent.setStrip(1); + _knobLeftContent.setFrame(1); + _knobLeftContent.setPosition(Common::Point(209, 199)); + _knobLeftContent.fixPriority(200); - _object5.postInit(); - _object5.setVisage(2900); - _object5.setStrip(1); - _object5.setFrame(2); - _object5.setPosition(Common::Point(247, 199)); - _object5.fixPriority(200); - - _item1.setDetails(Rect(0, 0, 320, 150), 2900, -1, -1, -1, 1, (SceneItem *)NULL); - _item2.setDetails(Rect(0, 150, 320, 200), 2900, -1, -1, -1, 1, (SceneItem *)NULL); - _item3.setDetails(Rect(42, 164, 129, 190), 2900, -1, -1, -1, 2, (SceneItem *)NULL); - _item4.setDetails(Rect(165, 160, 228, 200), 2900, -1, -1, -1, 2, (SceneItem *)NULL); - _item5.setDetails(Rect(228, 160, 285, 200), 2900, -1, -1, -1, 2, (SceneItem *)NULL); - - setAction(&_action1); + _knobRightContent.postInit(); + _knobRightContent.setVisage(2900); + _knobRightContent.setStrip(1); + _knobRightContent.setFrame(2); + _knobRightContent.setPosition(Common::Point(247, 199)); + _knobRightContent.fixPriority(200); + + _scenery.setDetails(Rect(0, 0, 320, 150), 2900, -1, -1, -1, 1, (SceneItem *)NULL); + _controlPanel.setDetails(Rect(0, 150, 320, 200), 2900, -1, -1, -1, 1, (SceneItem *)NULL); + _altimeter.setDetails(Rect(42, 164, 129, 190), 2900, -1, -1, -1, 2, (SceneItem *)NULL); + _knobLeft.setDetails(Rect(165, 160, 228, 200), 2900, -1, -1, -1, 2, (SceneItem *)NULL); + _knobRight.setDetails(Rect(228, 160, 285, 200), 2900, -1, -1, -1, 2, (SceneItem *)NULL); + +//**DEBUG** setAction(&_action1); R2_GLOBALS._player.postInit(); R2_GLOBALS._player.setVisage(2900); R2_GLOBALS._player.setStrip2(3); @@ -4990,7 +4990,7 @@ void Scene2900::postInit(SceneObjectList *OwnerList) { R2_GLOBALS._player.setPosition(Common::Point(160, 180)); ADD_PLAYER_MOVER(160, 100); - _object4.setPosition(Common::Point(9, 189)); + _altimeterContent.setPosition(Common::Point(9, 189)); } else { _offsetPos.x = R2_GLOBALS._balloonPosition.x + 120; _offsetPos.y = R2_GLOBALS._balloonPosition.y + 100; @@ -5019,7 +5019,7 @@ void Scene2900::postInit(SceneObjectList *OwnerList) { R2_GLOBALS._player.enableControl(); R2_GLOBALS._player._canWalk = false; - _object4.setPosition(Common::Point(109 - _field425, 189)); + _altimeterContent.setPosition(Common::Point(109 - _field425, 189)); } R2_GLOBALS._sound1.play(211); @@ -5080,19 +5080,19 @@ void Scene2900::dispatch() { } if (_field41C == -1 || _field41E == -1) { - if (_object4._frame == 1) { - _object4.setFrame2(10); + if (_altimeterContent._frame == 1) { + _altimeterContent.setFrame2(10); } else { - _object4.setFrame2(_object4._frame - 1); + _altimeterContent.setFrame2(_altimeterContent._frame - 1); } } else if (_field41C == -1 || _field41E == 1) { - if (_object4._frame == 10) - _object4.setFrame2(1); + if (_altimeterContent._frame == 10) + _altimeterContent.setFrame2(1); else - _object4.setFrame2(_object4._frame + 1); + _altimeterContent.setFrame2(_altimeterContent._frame + 1); } - _object4.setPosition(Common::Point(109 - _field425, 189)); + _altimeterContent.setPosition(Common::Point(109 - _field425, 189)); R2_GLOBALS._player.changeZoom(_field425); } diff --git a/engines/tsage/ringworld2/ringworld2_scenes2.h b/engines/tsage/ringworld2/ringworld2_scenes2.h index 4ea0a487f0..55c3d55365 100644 --- a/engines/tsage/ringworld2/ringworld2_scenes2.h +++ b/engines/tsage/ringworld2/ringworld2_scenes2.h @@ -669,23 +669,23 @@ public: class Scene2900 : public SceneExt { /* Items */ - class Item1 : public NamedHotspot { + class Scenery : public NamedHotspot { public: virtual bool startAction(CursorType action, Event &event); }; - class Item2 : public NamedHotspot { + class ControlPanel : public NamedHotspot { public: virtual bool startAction(CursorType action, Event &event); }; - class Item3 : public NamedHotspot { + class Altimeter : public NamedHotspot { public: virtual bool startAction(CursorType action, Event &event); }; - class Item4 : public NamedHotspot { + class KnobLeft : public NamedHotspot { public: virtual bool startAction(CursorType action, Event &event); }; - class Item5 : public NamedHotspot { + class KnobRight : public NamedHotspot { public: virtual bool startAction(CursorType action, Event &event); }; @@ -719,17 +719,17 @@ class Scene2900 : public SceneExt { void drawBlock(const byte *data, int xp, int yp, const Rect &r1, const Rect &r2); }; public: - BackgroundSceneObject _leftEdge; - BackgroundSceneObject _rightEdge; - BackgroundSceneObject _object3; - SceneObject _object4; - SceneObject _object5; - SceneObject _object6; - Item1 _item1; - Item2 _item2; - Item3 _item3; - Item4 _item4; - Item5 _item5; + SceneObject _leftEdge; + SceneObject _rightEdge; + SceneObject _knob; + SceneObject _altimeterContent; + SceneObject _knobRightContent; + SceneObject _knobLeftContent; + Scenery _scenery; + ControlPanel _controlPanel; + Altimeter _altimeter; + KnobLeft _knobLeft; + KnobRight _knobRight; Action1 _action1; Map _map; |