diff options
author | Strangerke | 2014-04-28 22:32:44 +0200 |
---|---|---|
committer | Strangerke | 2014-04-28 22:32:44 +0200 |
commit | 04b809a7a2fd3bfc8b7d45b8876d286fb98f7b3f (patch) | |
tree | 49fb8fcc3a171652a5da7cb6f8606b44de983e76 /engines | |
parent | 5be9157dce4b6ab479f76ecab4086c0ee75d7958 (diff) | |
download | scummvm-rg350-04b809a7a2fd3bfc8b7d45b8876d286fb98f7b3f.tar.gz scummvm-rg350-04b809a7a2fd3bfc8b7d45b8876d286fb98f7b3f.tar.bz2 scummvm-rg350-04b809a7a2fd3bfc8b7d45b8876d286fb98f7b3f.zip |
MADS: Implement scene 390
Diffstat (limited to 'engines')
-rw-r--r-- | engines/mads/nebular/nebular_scenes.cpp | 2 | ||||
-rw-r--r-- | engines/mads/nebular/nebular_scenes3.cpp | 28 | ||||
-rw-r--r-- | engines/mads/nebular/nebular_scenes3.h | 12 |
3 files changed, 42 insertions, 0 deletions
diff --git a/engines/mads/nebular/nebular_scenes.cpp b/engines/mads/nebular/nebular_scenes.cpp index d3caa19b8a..7b9e476fb3 100644 --- a/engines/mads/nebular/nebular_scenes.cpp +++ b/engines/mads/nebular/nebular_scenes.cpp @@ -158,6 +158,8 @@ SceneLogic *SceneFactory::createScene(MADSEngine *vm) { return new Scene388(vm); case 389: return new Scene389(vm); + case 390: + return new Scene390(vm); // Scene group #8 case 804: diff --git a/engines/mads/nebular/nebular_scenes3.cpp b/engines/mads/nebular/nebular_scenes3.cpp index 5d84a3203a..2d4022f944 100644 --- a/engines/mads/nebular/nebular_scenes3.cpp +++ b/engines/mads/nebular/nebular_scenes3.cpp @@ -5387,5 +5387,33 @@ void Scene389::actions() { /*------------------------------------------------------------------------*/ +void Scene390::setup() { + setPlayerSpritesPrefix(); + setAAName(); +} + +void Scene390::enter() { + _scene->_userInterface.setup(kInputLimitedSentences); + _game._player._visible = false; + + sceneEntrySound(); +} + +void Scene390::actions() { + if (_action.isAction(0x2D5, 0x2D4)) + _scene->_nextSceneId = 313; + else if (_action.isAction(0xD3, 0x2D3)) + _vm->_dialogs->show(0x9862); + else if (_action.isAction(VERB_OPEN, 0x2D3)) + _vm->_dialogs->show(0x9863); + else + return; + + _action._inProgress = false; +} + + +/*------------------------------------------------------------------------*/ + } // End of namespace Nebular } // End of namespace MADS diff --git a/engines/mads/nebular/nebular_scenes3.h b/engines/mads/nebular/nebular_scenes3.h index d05c5e8980..3b997a2709 100644 --- a/engines/mads/nebular/nebular_scenes3.h +++ b/engines/mads/nebular/nebular_scenes3.h @@ -531,6 +531,18 @@ public: virtual void postActions() {}; }; +class Scene390: public Scene3xx { +public: + Scene390(MADSEngine *vm) : Scene3xx(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 |