ScummVM API documentation
module1300_sprites.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_MODULE1300_SPRITES_H
23 #define NEVERHOOD_MODULES_MODULE1300_SPRITES_H
24 
25 #include "neverhood/neverhood.h"
26 #include "neverhood/module.h"
27 #include "neverhood/scene.h"
28 
29 namespace Neverhood {
30 
32 public:
33  AsScene1302Bridge(NeverhoodEngine *vm, Scene *parentScene);
34 protected:
35  Scene *_parentScene;
36  uint32 handleMessage(int messageNum, const MessageParam &param, Entity *sender);
37  void stLowerBridge();
38  void stRaiseBridge();
39  void cbLowerBridgeEvent();
40 };
41 
43 public:
45 protected:
46  int16 _firstY;
47  void update();
48  uint32 handleMessage(int messageNum, const MessageParam &param, Entity *sender);
49  void suMoveDown();
50  void suMoveUp();
51 };
52 
54 public:
55  AsScene1303Balloon(NeverhoodEngine *vm, Scene *parentScene);
56 protected:
57  Scene *_parentScene;
58  uint32 handleMessage(int messageNum, const MessageParam &param, Entity *sender);
59  uint32 hmBalloonPopped(int messageNum, const MessageParam &param, Entity *sender);
60  void stPopBalloon();
61 };
62 
64 public:
65  AsScene1304Needle(NeverhoodEngine *vm, Scene *parentScene, int surfacePriority, int16 x, int16 y);
66 protected:
67  Scene *_parentScene;
68  uint32 handleMessage(int messageNum, const MessageParam &param, Entity *sender);
69 };
70 
72 public:
73  AsScene1306Elevator(NeverhoodEngine *vm, Scene *parentScene, AnimatedSprite *asElevatorDoor);
74 protected:
75  Scene *_parentScene;
76  AnimatedSprite *_asElevatorDoor;
77  bool _isUp;
78  bool _isDown;
79  int _countdown;
80  void update();
81  void upGoingDown();
82  uint32 handleMessage(int messageNum, const MessageParam &param, Entity *sender);
83  void stGoingUp();
84  void cbGoingUpEvent();
85  void stGoingDown();
86  void cbGoingDownEvent();
87 };
88 
90 public:
91  AsScene1307Key(NeverhoodEngine *vm, Scene *parentScene, uint keyIndex, NRect *clipRects);
92 protected:
93  Scene *_parentScene;
94  NPointArray *_pointList;
95  uint _pointIndex;
96  int _frameIndex;
97  uint _keyIndex;
98  NRect *_clipRects;
99  bool _isClickable;
100  int16 _prevX, _prevY;
101  int16 _deltaX, _deltaY;
102  uint32 handleMessage(int messageNum, const MessageParam &param, Entity *sender);
103  void suRemoveKey();
104  void suInsertKey();
105  void suMoveKey();
106  void stRemoveKey();
107  void stInsertKey();
108  void stMoveKey();
109  void stUnlock();
110  void stInsert();
111 };
112 
114 public:
115  AsScene1308JaggyDoor(NeverhoodEngine *vm, Scene *parentScene);
116 protected:
117  Scene *_parentScene;
118  uint32 handleMessage(int messageNum, const MessageParam &param, Entity *sender);
119  void stOpenDoor();
120  void stOpenDoorDone();
121  void stCloseDoor();
122  void stCloseDoorDone();
123 };
124 
126 public:
127  AsScene1308KeyboardDoor(NeverhoodEngine *vm, Scene *parentScene);
128 protected:
129  Scene *_parentScene;
130  uint32 handleMessage(int messageNum, const MessageParam &param, Entity *sender);
131  void stFallingKeys();
132  void stFallingKeysDone();
133 };
134 
136 public:
138 protected:
139  Scene *_parentScene;
140  uint32 handleMessage(int messageNum, const MessageParam &param, Entity *sender);
141  void stFadeIn();
142  void stFadeOut();
143  void stFadeOutDone();
144 };
145 
147 public:
148  SsScene1308Number(NeverhoodEngine *vm, uint32 fileHash, int index);
149 };
150 
152 public:
154 protected:
155  uint32 handleMessage(int messageNum, const MessageParam &param, Entity *sender);
156 };
157 
158 class KmScene1303 : public Klaymen {
159 public:
160  KmScene1303(NeverhoodEngine *vm, Scene *parentScene, int16 x, int16 y);
161 protected:
162  uint32 xHandleMessage(int messageNum, const MessageParam &param) override;
163 };
164 
165 class KmScene1304 : public Klaymen {
166 public:
167  KmScene1304(NeverhoodEngine *vm, Scene *parentScene, int16 x, int16 y);
168 protected:
169  uint32 xHandleMessage(int messageNum, const MessageParam &param) override;
170 };
171 
172 class KmScene1305 : public Klaymen {
173 public:
174  KmScene1305(NeverhoodEngine *vm, Scene *parentScene, int16 x, int16 y);
175 protected:
176  void stCrashDown();
177  void stCrashDownFinished();
178 
179  uint32 xHandleMessage(int messageNum, const MessageParam &param) override;
180 };
181 
182 class KmScene1306 : public Klaymen {
183 public:
184  KmScene1306(NeverhoodEngine *vm, Scene *parentScene, int16 x, int16 y);
185 protected:
186  uint32 xHandleMessage(int messageNum, const MessageParam &param) override;
187 };
188 
189 class KmScene1308 : public Klaymen {
190 public:
191  KmScene1308(NeverhoodEngine *vm, Scene *parentScene, int16 x, int16 y);
192 protected:
193  uint32 xHandleMessage(int messageNum, const MessageParam &param) override;
194 };
195 
196 } // End of namespace Neverhood
197 
198 #endif /* NEVERHOOD_MODULES_MODULE1300_SPRITES_H */
Definition: module1300_sprites.h:135
Definition: background.h:30
Definition: module1300_sprites.h:182
Definition: neverhood.h:60
Definition: array.h:52
Definition: module1300_sprites.h:113
Definition: module1300_sprites.h:125
Definition: module1300_sprites.h:89
Definition: module1300_sprites.h:172
Definition: sprite.h:140
Definition: graphics.h:42
Definition: entity.h:42
Definition: entity.h:77
Definition: module1300_sprites.h:189
Definition: module1300_sprites.h:151
Definition: module1300_sprites.h:42
Definition: scene.h:41
Definition: module1300_sprites.h:165
Definition: module1300_sprites.h:31
Definition: module1300_sprites.h:63
Definition: sprite.h:119
Definition: module1300_sprites.h:158
Definition: klaymen.h:59
Definition: module1300_sprites.h:71
Definition: module1300_sprites.h:146
Definition: module1300_sprites.h:53