From f894b3f1269203793214a750cbd5a9ae022d2d8c Mon Sep 17 00:00:00 2001 From: Strangerke Date: Sun, 4 May 2014 19:21:38 +0200 Subject: MADS: Implement scene 409, first try of Teleporter implementation --- engines/mads/nebular/nebular_scenes.h | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) (limited to 'engines/mads/nebular/nebular_scenes.h') diff --git a/engines/mads/nebular/nebular_scenes.h b/engines/mads/nebular/nebular_scenes.h index 85b24050d6..2a47af61d3 100644 --- a/engines/mads/nebular/nebular_scenes.h +++ b/engines/mads/nebular/nebular_scenes.h @@ -125,7 +125,7 @@ protected: Common::String formAnimName(char sepChar, int suffixNum); /** - * Plays appropriate sound for entering varous rooms + * Plays appropriate sound for entering various rooms */ void lowRoomsEntrySound(); public: @@ -150,6 +150,34 @@ protected: SceneInfoNebular(MADSEngine *vm) : SceneInfo(vm) {} }; +class SceneTeleporter : public NebularScene { +protected: + int _buttonTyped; + int _curCode; + int _digitCount; + int _curMessageId; + int _handSpriteId; + int _handSequenceId; + int _finishedCodeCounter; + int _meteorologistNextPlace; + int _meteorologistCurPlace; + int _teleporterSceneId; + Common::String _msgText; + + int teleporterAddress(int code, bool working); + + void teleporterHandleKey(); + Common::Point teleporterComputeLocation(); + void teleporterEnter(); + bool teleporterActions(); + void teleporterStep(); + +protected: + /** + * Constructor + */ + SceneTeleporter(MADSEngine *vm) : NebularScene(vm) {} +}; } // End of namespace Nebular } // End of namespace MADS -- cgit v1.2.3