ScummVM API documentation
module2400_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_MODULE2400_SPRITES_H
23 #define NEVERHOOD_MODULES_MODULE2400_SPRITES_H
24 
25 #include "neverhood/neverhood.h"
26 #include "neverhood/module.h"
27 #include "neverhood/scene.h"
28 #include "neverhood/gamemodule.h"
29 
30 namespace Neverhood {
31 
33 public:
35 protected:
36  int _soundIndex;
37  uint32 handleMessage(int messageNum, const MessageParam &param, Entity *sender);
38 };
39 
41 public:
43  ~AsScene2401FlowingWater() override;
44 protected:
45  bool _isWaterFlowing;
46  uint32 handleMessage(int messageNum, const MessageParam &param, Entity *sender);
47 };
48 
50 public:
51  AsScene2401WaterFlushing(NeverhoodEngine *vm, int16 x, int16 y);
52 protected:
53  int _countdown;
54  int _flushLoopCount;
55  void update();
56  uint32 handleMessage(int messageNum, const MessageParam &param, Entity *sender);
57 };
58 
60 public:
61  AsScene2401Door(NeverhoodEngine *vm, bool isOpen);
62 protected:
63  int _countdown;
64  bool _isOpen;
65  void update();
66  uint32 handleMessage(int messageNum, const MessageParam &param, Entity *sender);
67  void stDoorOpenFinished();
68 };
69 
71 public:
72  AsScene2402Door(NeverhoodEngine *vm, Scene *parentScene, bool isOpen);
73 protected:
74  Scene *_parentScene;
75  int _countdown;
76  bool _isOpen;
77  void update();
78  uint32 handleMessage(int messageNum, const MessageParam &param, Entity *sender);
79  void stDoorClosingFinished();
80 };
81 
82 class AsScene2402TV : public AnimatedSprite {
83 public:
84  AsScene2402TV(NeverhoodEngine *vm, Klaymen *klaymen);
85  ~AsScene2402TV() override;
86 protected:
87  Klaymen *_klaymen;
88  int _countdown1;
89  int _countdown2;
90  void upWait();
91  void upFocusKlaymen();
92  void stJokeFinished();
93  uint32 hmJoke(int messageNum, const MessageParam &param, Entity *sender);
94 };
95 
96 class KmScene2401 : public Klaymen {
97 public:
98  KmScene2401(NeverhoodEngine *vm, Scene *parentScene, int16 x, int16 y);
99 protected:
100  bool _canSpitPipe;
101  bool _contSpitPipe;
102  bool _readyToSpit;
103  uint32 _spitPipeIndex;
104  uint32 _spitDestPipeIndex;
105  uint32 _spitContDestPipeIndex;
106 
107  void spitIntoPipe();
108  void stTrySpitIntoPipe();
109  void stContSpitIntoPipe();
110  uint32 hmSpit(int messageNum, const MessageParam &param, Entity *sender);
111 
112  uint32 xHandleMessage(int messageNum, const MessageParam &param) override;
113 };
114 
115 class KmScene2402 : public Klaymen {
116 public:
117  KmScene2402(NeverhoodEngine *vm, Scene *parentScene, int16 x, int16 y);
118 protected:
119  uint32 xHandleMessage(int messageNum, const MessageParam &param) override;
120 };
121 
122 class KmScene2403 : public Klaymen {
123 public:
124  KmScene2403(NeverhoodEngine *vm, Scene *parentScene, int16 x, int16 y);
125 protected:
126  uint32 xHandleMessage(int messageNum, const MessageParam &param) override;
127 };
128 
129 class KmScene2406 : public Klaymen {
130 public:
131  KmScene2406(NeverhoodEngine *vm, Scene *parentScene, int16 x, int16 y, NRect *clipRects, int clipRectsCount);
132 protected:
133  uint32 xHandleMessage(int messageNum, const MessageParam &param) override;
134 };
135 
136 } // End of namespace Neverhood
137 
138 #endif /* NEVERHOOD_MODULES_MODULE2400_SPRITES_H */
Definition: background.h:30
Definition: module2400_sprites.h:70
Definition: module2400_sprites.h:129
Definition: neverhood.h:60
Definition: module2400_sprites.h:82
Definition: module2400_sprites.h:115
Definition: sprite.h:140
Definition: module2400_sprites.h:59
Definition: graphics.h:42
Definition: entity.h:42
Definition: entity.h:77
Definition: module2400_sprites.h:96
Definition: module2400_sprites.h:49
Definition: module2400_sprites.h:40
Definition: scene.h:41
Definition: module2400_sprites.h:32
Definition: module2400_sprites.h:122
Definition: klaymen.h:59