ScummVM API documentation
module2500.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_MODULE2500_H
23 #define NEVERHOOD_MODULES_MODULE2500_H
24 
25 #include "neverhood/neverhood.h"
26 #include "neverhood/module.h"
27 #include "neverhood/scene.h"
28 #include "neverhood/modules/module1600_sprites.h" // for Tracks
29 
30 namespace Neverhood {
31 
32 class Module2500 : public Module {
33 public:
34  Module2500(NeverhoodEngine *vm, Module *parentModule, int which);
35  ~Module2500() override;
36 protected:
37  int _sceneNum;
38  int _soundIndex;
39  void createScene(int sceneNum, int which);
40  void updateScene();
41  uint32 handleMessage(int messageNum, const MessageParam &param, Entity *sender);
42  void createScene2704(int which, uint32 sceneInfoId, int16 value, const uint32 *staticSprites = NULL, const NRect *clipRect = NULL);
43 };
44 
45 class AsCommonCar;
46 
47 class Scene2501 : public Scene {
48 public:
49  Scene2501(NeverhoodEngine *vm, Module *parentModule, int which);
50  ~Scene2501() override;
51 protected:
52  AsCommonCar *_asCar;
53  Sprite *_ssTrackShadowBackground;
54  Sprite *_asCarShadow;
55  Sprite *_asCarConnectorShadow;
56  Sprite *_asCarTrackShadow;
57  Sprite *_asIdleCarLower;
58  Sprite *_asIdleCarFull;
59  Klaymen *_kmScene2501;
60  Tracks _tracks;
61  NPointArray *_trackPoints;
62  int _currTrackIndex;
63  NPoint _clickPoint;
64  int _newTrackIndex;
65  int _carStatus;
66  bool _klaymenInCar;
67  void update();
68  void upCarAtHome();
69  void upGettingOutOfCar();
70  void upRidingCar();
71  uint32 handleMessage(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 moveCarToPoint(NPoint &pt);
75  void changeTrack();
76  void updateKlaymenClipRect();
77 };
78 
79 class Scene2504 : public Scene {
80 public:
81  Scene2504(NeverhoodEngine *vm, Module *parentModule, int which);
82 protected:
83  uint32 handleMessage(int messageNum, const MessageParam &param, Entity *sender);
84 };
85 
86 } // End of namespace Neverhood
87 
88 #endif /* NEVERHOOD_MODULES_MODULE2500_H */
Definition: background.h:30
Definition: module1600_sprites.h:110
Definition: module2500.h:79
Definition: neverhood.h:60
Definition: array.h:52
Definition: graphics.h:42
Definition: entity.h:42
Definition: module2500.h:32
Definition: module2500.h:47
Definition: entity.h:77
Definition: scene.h:41
Definition: sprite.h:54
Definition: module.h:45
Definition: module1600_sprites.h:31
Definition: klaymen.h:59
Definition: graphics.h:32