ScummVM API documentation
module1400.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_MODULE1400_H
23 #define NEVERHOOD_MODULES_MODULE1400_H
24 
25 #include "neverhood/neverhood.h"
26 #include "neverhood/module.h"
27 #include "neverhood/scene.h"
28 
29 namespace Neverhood {
30 
31 class Module1400 : public Module {
32 public:
33  Module1400(NeverhoodEngine *vm, Module *parentModule, int which);
34  ~Module1400() override;
35 protected:
36  int _sceneNum;
37  void createScene(int sceneNum, int which);
38  void updateScene();
39 };
40 
41 class AsCommonProjector;
42 class AsScene1201Tape;
43 class AsScene1405Tile;
44 
45 class Scene1401 : public Scene {
46 public:
47  Scene1401(NeverhoodEngine *vm, Module *parentModule, int which);
48 protected:
49  bool _projectorBorderFlag;
50  Sprite *_ssFloorButton;
51  AsCommonProjector *_asProjector;
52  Sprite *_asPipe;
53  Sprite *_asMouse;
54  Sprite *_asCheese;
55  Sprite *_asBackDoor;
56  Sprite *_sprite1;
57  Sprite *_sprite2;
58  Sprite *_sprite3;
59  Sprite *_ssButton;
60  void update();
61  uint32 handleMessage(int messageNum, const MessageParam &param, Entity *sender);
62 };
63 
64 class Scene1402 : public Scene {
65 public:
66  Scene1402(NeverhoodEngine *vm, Module *parentModule, int which);
67 protected:
68  Sprite *_ssBridgePart1;
69  Sprite *_ssBridgePart2;
70  Sprite *_ssBridgePart3;
71  Sprite *_asPuzzleBox;
72  AsCommonProjector *_asProjector;
73  bool _isShaking;
74  void upShaking();
75  uint32 handleMessage(int messageNum, const MessageParam &param, Entity *sender);
76  void startShaking();
77  void stopShaking();
78 };
79 
80 class Scene1407 : public Scene {
81 public:
82  Scene1407(NeverhoodEngine *vm, Module *parentModule);
83 protected:
84  Sprite *_asMouse;
85  Sprite *_ssResetButton;
86  int _puzzleSolvedCountdown;
87  int _resetButtonCountdown;
88  void update();
89  uint32 handleMessage(int messageNum, const MessageParam &param, Entity *sender);
90 };
91 
92 class Scene1403 : public Scene {
93 public:
94  Scene1403(NeverhoodEngine *vm, Module *parentModule, int which);
95 protected:
96  Sprite *_sprite1;
97  Sprite *_sprite2;
98  Sprite *_sprite3;
99  AsScene1201Tape *_asTape1;
100  AsScene1201Tape *_asTape2;
101  AsCommonProjector *_asProjector;
102  bool _isProjecting;
103  uint32 handleMessage(int messageNum, const MessageParam &param, Entity *sender);
104 };
105 
106 class Scene1404 : public Scene {
107 public:
108  Scene1404(NeverhoodEngine *vm, Module *parentModule, int which);
109  ~Scene1404() override;
110 protected:
111  Sprite *_sprite1;
112  Sprite *_asTape;
113  AsCommonProjector *_asProjector;
114  Sprite *_asKey;
115  uint32 handleMessage(int messageNum, const MessageParam &param, Entity *sender);
116 };
117 
118 class Scene1405 : public Scene {
119 public:
120  Scene1405(NeverhoodEngine *vm, Module *parentModule);
121  int getCountdown() const { return _countdown; }
122 protected:
123  bool _selectFirstTile;
124  int _firstTileIndex;
125  int _secondTileIndex;
126  int _tilesLeft;
127  int _countdown;
128  AsScene1405Tile *_tiles[48];
129  void update();
130  uint32 handleMessage(int messageNum, const MessageParam &param, Entity *sender);
131 };
132 
133 } // End of namespace Neverhood
134 
135 #endif /* NEVERHOOD_MODULES_MODULE1400_H */
Definition: background.h:30
Definition: module1400.h:106
Definition: module1400.h:80
Definition: neverhood.h:60
Definition: module1400_sprites.h:153
Definition: module1400.h:64
Definition: module1400.h:92
Definition: module1400.h:31
Definition: entity.h:42
Definition: entity.h:77
Definition: module1400.h:45
Definition: scene.h:41
Definition: sprite.h:54
Definition: module.h:45
Definition: module1400.h:118
Definition: module1200_sprites.h:41
Definition: module1400_sprites.h:88