ScummVM API documentation
module3000.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef NEVERHOOD_MODULES_MODULE3000_H
23 #define NEVERHOOD_MODULES_MODULE3000_H
24 
25 #include "neverhood/neverhood.h"
26 #include "neverhood/module.h"
27 #include "neverhood/scene.h"
28 
29 namespace Neverhood {
30 
31 class Module3000 : public Module {
32 public:
33  Module3000(NeverhoodEngine *vm, Module *parentModule, int which);
34  ~Module3000() override;
35 protected:
36  int _waterfallSoundVolume;
37  bool _isWaterfallRunning;
38  void createScene(int sceneNum, int which);
39  void updateScene();
40 };
41 
46 class AsScene3009Symbol;
47 
48 class Scene3009 : public Scene {
49 public:
50  Scene3009(NeverhoodEngine *vm, Module *parentModule, int which);
51  ~Scene3009() override;
52  bool isTurning();
53 protected:
54  int _lockSymbolsPart1Countdown;
55  int _lockSymbolsPart2Countdown;
56  SmackerPlayer *_cannonSmackerPlayer;
57  Sprite *_ssFireCannonButton;
58  SsScene3009SymbolEdges *_ssSymbolEdges[2];
59  SsScene3009TargetLine *_ssTargetLines[2];
60  AsScene3009VerticalIndicator *_asVerticalIndicator;
61  AsScene3009HorizontalIndicator *_asHorizontalIndicator;
62  AsScene3009Symbol *_asSymbols[6];
63  uint32 _cannonTargetStatus;
64  uint32 _correctSymbols[6];
65  bool _keepVideo;
66  bool _moveCannonLeftFirst;
67  bool _isTurning;
68  void update();
69  uint32 handleMessage(int messageNum, const MessageParam &param, Entity *sender);
70  void playActionVideo();
71  bool isSymbolsPart1Solved();
72  bool isSymbolsPart2Solved();
73  void openSmacker(uint32 fileHash, bool keepLastFrame);
74 };
75 
78 
79 class Scene3010 : public Scene {
80 public:
81  Scene3010(NeverhoodEngine *vm, Module *parentModule, int which);
82 protected:
83  int _countdown;
84  bool _doorUnlocked;
85  bool _checkUnlocked;
86  SsScene3010DeadBoltButton *_ssDeadBoltButtons[3];
87  AsScene3010DeadBolt *_asDeadBolts[3];
88  bool _boltUnlocked[3];
89  bool _boltUnlocking[3];
90  void update();
91  uint32 handleMessage(int messageNum, const MessageParam &param, Entity *sender);
92 };
93 
94 class AsScene3011Symbol;
95 
96 class Scene3011 : public Scene {
97 public:
98  Scene3011(NeverhoodEngine *vm, Module *parentModule, int which);
99 protected:
100  Sprite *_ssButton;
101  AsScene3011Symbol *_asSymbols[12];
102  int _updateStatus;
103  bool _buttonClicked;
104  int _countdown;
105  int _noisySymbolIndex;
106  int _currentSymbolIndex;
107  int _noisyRandomSymbolIndex;
108  void update();
109  uint32 handleMessage(int messageNum, const MessageParam &param, Entity *sender);
110  void fadeIn();
111  void fadeOut();
112 };
113 
114 } // End of namespace Neverhood
115 
116 #endif /* NEVERHOOD_MODULES_MODULE3000_H */
Definition: background.h:30
Definition: module3000_sprites.h:168
Definition: neverhood.h:60
Definition: module3000_sprites.h:89
Definition: entity.h:42
Definition: module3000.h:31
Definition: entity.h:77
Definition: smackerplayer.h:61
Definition: module3000_sprites.h:103
Definition: module3000_sprites.h:118
Definition: module3000_sprites.h:46
Definition: module3000_sprites.h:135
Definition: scene.h:41
Definition: sprite.h:54
Definition: module3000.h:96
Definition: module.h:45
Definition: module3000.h:48
Definition: module3000_sprites.h:79
Definition: module3000.h:79
Definition: module3000_sprites.h:59