ScummVM API documentation
module1600.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_MODULE1600_H
23 #define NEVERHOOD_MODULES_MODULE1600_H
24 
25 #include "neverhood/neverhood.h"
26 #include "neverhood/module.h"
27 #include "neverhood/scene.h"
28 
29 namespace Neverhood {
30 
31 class Module1600 : public Module {
32 public:
33  Module1600(NeverhoodEngine *vm, Module *parentModule, int which);
34  ~Module1600() override;
35 protected:
36  int _sceneNum;
37  void createScene(int sceneNum, int which);
38  void updateScene();
39 };
40 
41 class AsCommonCar;
42 
43 class Scene1608 : public Scene {
44 public:
45  Scene1608(NeverhoodEngine *vm, Module *parentModule, int which);
46  ~Scene1608() override;
47 protected:
48  AsCommonCar *_asCar;
49  Sprite *_asKey;
50  Sprite *_asIdleCarLower;
51  Sprite *_asIdleCarFull;
52  Sprite *_sprite1;
53  Sprite *_sprite2;
54  Sprite *_sprite3;
55  Sprite *_asTape;
56  Klaymen *_kmScene1608;
57  NRect _clipRect1;
58  NRect _clipRect2;
59  NRect _clipRect3;
60  int _carStatus;
61  bool _carClipFlag;
62  bool _klaymenInCar;
63  int _countdown1;
64  NPointArray *_roomPathPoints;
65  void upLowerFloor();
66  void upUpperFloor();
67  void upCarAtHome();
68  void upGettingOutOfCar();
69  void upRidingCar();
70  uint32 hmLowerFloor(int messageNum, const MessageParam &param, Entity *sender);
71  uint32 hmUpperFloor(int messageNum, const MessageParam &param, Entity *sender);
72  uint32 hmRidingCar(int messageNum, const MessageParam &param, Entity *sender);
73  uint32 hmCarAtHome(int messageNum, const MessageParam &param, Entity *sender);
74  void updateKlaymenCliprect();
75 };
76 
77 class AsScene3011Symbol;
78 
79 class Scene1609 : public Scene {
80  friend class Console;
81 public:
82  Scene1609(NeverhoodEngine *vm, Module *parentModule);
83 protected:
84  Sprite *_ssButton;
85  AsScene3011Symbol *_asSymbols[12];
86  int _currentSymbolIndex;
87  int _noisySymbolIndex;
88  int _symbolPosition;
89  int _countdown1;
90  bool _changeCurrentSymbol;
91  bool _isSolved;
92  void update();
93  uint32 handleMessage(int messageNum, const MessageParam &param, Entity *sender);
94  bool testVars();
95 };
96 
97 } // End of namespace Neverhood
98 
99 #endif /* NEVERHOOD_MODULES_MODULE1600_H */
Definition: background.h:30
Definition: module3000_sprites.h:168
Definition: neverhood.h:60
Definition: array.h:52
Definition: module1600.h:31
Definition: graphics.h:42
Definition: entity.h:42
Definition: entity.h:77
Definition: scene.h:41
Definition: sprite.h:54
Definition: module.h:45
Definition: module1600.h:79
Definition: module1600_sprites.h:31
Definition: klaymen.h:59
Definition: console.h:31
Definition: module1600.h:43