ScummVM API documentation
module2400.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_MODULE2400_H
23 #define NEVERHOOD_MODULES_MODULE2400_H
24 
25 #include "neverhood/neverhood.h"
26 #include "neverhood/module.h"
27 #include "neverhood/scene.h"
28 #include "neverhood/gamemodule.h"
29 #include "neverhood/diskplayerscene.h"
30 
31 namespace Neverhood {
32 
33 // Module2400
34 
35 class Module2400 : public Module {
36 public:
37  Module2400(NeverhoodEngine *vm, Module *parentModule, int which);
38  ~Module2400() override;
39 protected:
40  int _sceneNum;
41  void createScene(int sceneNum, int which);
42  void updateScene();
43  uint32 handleMessage(int messageNum, const MessageParam &param, Entity *sender);
44 };
45 
46 class Scene2401 : public Scene {
47 public:
48  Scene2401(NeverhoodEngine *vm, Module *parentModule, int which);
49 protected:
50  Sprite *_sprite1;
51  Sprite *_asFlowingWater;
52  Sprite *_ssButton;
53  Sprite *_ssFloorButton;
54  Sprite *_asWaterSpit[2];
55  Sprite *_ssWaterPipes[10];
56  Sprite *_asWaterFlushing[5];
57  Sprite *_asDoor;
58  bool _soundToggle;
59  bool _unkFlag;
60  int _countdown1;
61  int _countdown2;
62  int _pipeStatus;
63  int _asWaterSpitIndex;
64  void update();
65  uint32 handleMessage(int messageNum, const MessageParam &param, Entity *sender);
66  void playPipeSound(uint32 fileHash);
67 };
68 
69 class Scene2402 : public Scene {
70 public:
71  Scene2402(NeverhoodEngine *vm, Module *parentModule, int which);
72  ~Scene2402() override;
73 protected:
74  Sprite *_asDoor;
75  Sprite *_ssButton;
76  Sprite *_asTape;
77  StaticSprite *_ssDoorFrame;
78  int _pipeStatus;
79  int _countdown;
80  bool _soundToggle;
81  void update();
82  uint32 handleMessage(int messageNum, const MessageParam &param, Entity *sender);
83  void playPipeSound(uint32 fileHash);
84 };
85 
86 class Scene2403 : public Scene {
87 public:
88  Scene2403(NeverhoodEngine *vm, Module *parentModule, int which);
89 protected:
90  Sprite *_ssButton;
91  Sprite *_asTape;
92  Sprite *_asKey;
93  Sprite *_asLightCord;
94  bool _isClimbingLadder;
95  uint32 handleMessage(int messageNum, const MessageParam &param, Entity *sender);
96 };
97 
98 class Scene2406 : public Scene {
99 public:
100  Scene2406(NeverhoodEngine *vm, Module *parentModule, int which);
101 protected:
102  Sprite *_asTape;
103  Sprite *_asKey;
104  NRect _clipRects[2];
105  bool _isClimbingLadder;
106  uint32 handleMessage(int messageNum, const MessageParam &param, Entity *sender);
107 };
108 
109 } // End of namespace Neverhood
110 
111 #endif /* NEVERHOOD_MODULES_MODULE2400_H */
Definition: background.h:30
Definition: neverhood.h:60
Definition: module2400.h:69
Definition: module2400.h:86
Definition: graphics.h:42
Definition: module2400.h:46
Definition: module2400.h:35
Definition: entity.h:42
Definition: entity.h:77
Definition: scene.h:41
Definition: module2400.h:98
Definition: sprite.h:54
Definition: sprite.h:119
Definition: module.h:45