diff options
author | johndoe123 | 2011-08-02 10:56:16 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2013-05-08 20:39:34 +0200 |
commit | 87d1f79f311f25ea434680caff508614a5c892d9 (patch) | |
tree | 846cd7a51b2d04bb09c31134dfacbdd0c3a7280e /engines/neverhood/module3000.h | |
parent | d88836596d4c12763332d300c0da2282e24f535d (diff) | |
download | scummvm-rg350-87d1f79f311f25ea434680caff508614a5c892d9.tar.gz scummvm-rg350-87d1f79f311f25ea434680caff508614a5c892d9.tar.bz2 scummvm-rg350-87d1f79f311f25ea434680caff508614a5c892d9.zip |
NEVERHOOD: More work on Scene3009
Diffstat (limited to 'engines/neverhood/module3000.h')
-rw-r--r-- | engines/neverhood/module3000.h | 91 |
1 files changed, 66 insertions, 25 deletions
diff --git a/engines/neverhood/module3000.h b/engines/neverhood/module3000.h index 9bda5db2af..499741d851 100644 --- a/engines/neverhood/module3000.h +++ b/engines/neverhood/module3000.h @@ -68,9 +68,9 @@ protected: class Scene3009; -class Class438 : public StaticSprite { +class SsScene3009FireCannonButton : public StaticSprite { public: - Class438(NeverhoodEngine *vm, Scene3009 *parentScene); + SsScene3009FireCannonButton(NeverhoodEngine *vm, Scene3009 *parentScene); protected: Scene3009 *_parentScene; SoundResource _soundResource; @@ -79,9 +79,9 @@ protected: uint32 handleMessage(int messageNum, const MessageParam ¶m, Entity *sender); }; -class Class439 : public StaticSprite { +class SsScene3009SymbolEdges : public StaticSprite { public: - Class439(NeverhoodEngine *vm, int index); + SsScene3009SymbolEdges(NeverhoodEngine *vm, int index); void show(); void hide(); void startBlinking(); @@ -92,14 +92,30 @@ protected: uint32 handleMessage(int messageNum, const MessageParam ¶m, Entity *sender); }; -class Class440 : public StaticSprite { +class SsScene3009TargetLine : public StaticSprite { public: - Class440(NeverhoodEngine *vm, int index); + SsScene3009TargetLine(NeverhoodEngine *vm, int index); + void show(); }; -class Class522 : public AnimatedSprite { +class SsScene3009SymbolArrow : public StaticSprite { public: - Class522(NeverhoodEngine *vm, Scene3009 *parentScene, int index); + SsScene3009SymbolArrow(NeverhoodEngine *vm, Sprite *asSymbol, int index); + void hide(); +protected: + SoundResource _soundResource; + Sprite *_asSymbol; + int _index; + int _incrDecr; + bool _enabled; + int _countdown; + void update(); + uint32 handleMessage(int messageNum, const MessageParam ¶m, Entity *sender); +}; + +class AsScene3009VerticalIndicator : public AnimatedSprite { +public: + AsScene3009VerticalIndicator(NeverhoodEngine *vm, Scene3009 *parentScene, int index); void show(); protected: Scene3009 *_parentScene; @@ -107,33 +123,58 @@ protected: uint32 handleMessage(int messageNum, const MessageParam ¶m, Entity *sender); }; +class AsScene3009HorizontalIndicator : public AnimatedSprite { +public: + AsScene3009HorizontalIndicator(NeverhoodEngine *vm, Scene3009 *parentScene, uint32 varValue); + void show(); + void stMoveLeft(); + void stMoveRight(); +protected: + Scene3009 *_parentScene; + bool _enabled; + uint32 handleMessage(int messageNum, const MessageParam ¶m, Entity *sender); + void suMoveLeft(); + void suMoveRight(); +}; + +class AsScene3009Symbol : public AnimatedSprite { +public: + AsScene3009Symbol(NeverhoodEngine *vm, Scene3009 *parentScene, int index); + void hide(); +protected: + Scene3009 *_parentScene; + int _index; + uint32 _symbolIndex; + SsScene3009SymbolArrow *_ssArrowPrev; + SsScene3009SymbolArrow *_ssArrowNext; + uint32 handleMessage(int messageNum, const MessageParam ¶m, Entity *sender); +}; + class Scene3009 : public Scene { public: Scene3009(NeverhoodEngine *vm, Module *parentModule, int which); bool sub462E90(); protected: - int _countdown1; - int _countdown2; + int _lockSymbolsPart1Countdown; + int _lockSymbolsPart2Countdown; SmackerPlayer *_smackerPlayer; - Sprite *_class438; - Class439 *_class439Array[2]; - Class440 *_class440Array[2]; - Class522 *_class522; -#if 0 - Class523 *_class523; - Class524 *_class524Array[6]; -#endif - uint32 _varValue; - uint32 _varValueArray[6]; - bool _flag1; + Sprite *_ssFireCannonButton; + SsScene3009SymbolEdges *_ssSymbolEdges[2]; + SsScene3009TargetLine *_ssTargetLines[2]; + AsScene3009VerticalIndicator *_asVerticalIndicator; + AsScene3009HorizontalIndicator *_asHorizontalIndicator; + AsScene3009Symbol *_asSymbols[6]; + uint32 _cannonLocation; + uint32 _correctSymbols[6]; + bool _keepVideo; bool _flag2; - bool _flag3; + // UNUSED? bool _flag3; bool _flag4; void update(); uint32 handleMessage(int messageNum, const MessageParam ¶m, Entity *sender); - void sub462DC0(); - bool sub462E10(); - bool sub462E50(); + void playExtVideo(); + bool isSymbolsPart1Solved(); + bool isSymbolsPart2Solved(); }; // Scene3010 |