diff options
author | Strangerke | 2014-05-10 10:53:23 +0200 |
---|---|---|
committer | Strangerke | 2014-05-10 10:53:23 +0200 |
commit | 9b79267bd7adc1eeaec105d378b146a1402c607f (patch) | |
tree | d172933e73eb4d03a8440fd332bcbbde088924a3 /engines | |
parent | be6cedef02abed65fc7e2643d3dc989afee0f488 (diff) | |
download | scummvm-rg350-9b79267bd7adc1eeaec105d378b146a1402c607f.tar.gz scummvm-rg350-9b79267bd7adc1eeaec105d378b146a1402c607f.tar.bz2 scummvm-rg350-9b79267bd7adc1eeaec105d378b146a1402c607f.zip |
MADS: Implement scene 515
Diffstat (limited to 'engines')
-rw-r--r-- | engines/mads/nebular/nebular_scenes.cpp | 2 | ||||
-rw-r--r-- | engines/mads/nebular/nebular_scenes5.cpp | 22 | ||||
-rw-r--r-- | engines/mads/nebular/nebular_scenes5.h | 12 |
3 files changed, 35 insertions, 1 deletions
diff --git a/engines/mads/nebular/nebular_scenes.cpp b/engines/mads/nebular/nebular_scenes.cpp index 7d91d7f2b4..dd3410750f 100644 --- a/engines/mads/nebular/nebular_scenes.cpp +++ b/engines/mads/nebular/nebular_scenes.cpp @@ -219,7 +219,7 @@ SceneLogic *SceneFactory::createScene(MADSEngine *vm) { case 513: // outside mall return new Scene513(vm); case 515: // overview - return new DummyScene(vm); // TODO + return new Scene515(vm); case 551: // outside teleporter (with skeleton) return new DummyScene(vm); // TODO diff --git a/engines/mads/nebular/nebular_scenes5.cpp b/engines/mads/nebular/nebular_scenes5.cpp index cd96e82cf5..72f94f3ddd 100644 --- a/engines/mads/nebular/nebular_scenes5.cpp +++ b/engines/mads/nebular/nebular_scenes5.cpp @@ -2558,5 +2558,27 @@ void Scene513::actions() { /*------------------------------------------------------------------------*/ +void Scene515::setup() { + _game._player._spritesPrefix = ""; + setAAName(); +} + +void Scene515::enter() { + _game._player._visible = false; + _game._player._stepEnabled = false; + _scene->_sequences.addTimer(30, 70); + + sceneEntrySound(); +} + +void Scene515::step() { + if (_game._trigger == 70) + _scene->loadAnimation(formAnimName('A', -1), 71); + else if (_game._trigger == 71) + _scene->_nextSceneId = 508; +} + +/*------------------------------------------------------------------------*/ + } // End of namespace Nebular } // End of namespace MADS diff --git a/engines/mads/nebular/nebular_scenes5.h b/engines/mads/nebular/nebular_scenes5.h index 3bd8a20df8..0fbc62fa71 100644 --- a/engines/mads/nebular/nebular_scenes5.h +++ b/engines/mads/nebular/nebular_scenes5.h @@ -226,6 +226,18 @@ public: virtual void postActions() {}; }; +class Scene515: public Scene5xx{ +public: + Scene515(MADSEngine *vm) : Scene5xx(vm) {} + + virtual void setup(); + virtual void enter(); + virtual void step(); + virtual void preActions() {}; + virtual void actions() {}; + virtual void postActions() {}; +}; + } // End of namespace Nebular } // End of namespace MADS |