ScummVM API documentation
chapters.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 LASTEXPRESS_CHAPTERS_H
23 #define LASTEXPRESS_CHAPTERS_H
24 
25 #include "lastexpress/entities/entity.h"
26 
27 namespace LastExpress {
28 
29 class LastExpressEngine;
30 
31 class Chapters : public Entity {
32 public:
33  Chapters(LastExpressEngine *engine);
34  ~Chapters() override {}
35 
42  DECLARE_VFUNCTION_2(savegame, SavegameType savegameType, uint32 param)
43 
44 
50  DECLARE_FUNCTION_2(enterStation, const char *stationName, CityIndex index)
51 
52 
57  DECLARE_FUNCTION_1(exitStation, const char *stationName)
58 
59 
62  DECLARE_VFUNCTION(chapter1)
63 
64 
67  DECLARE_FUNCTION(resetMainEntities)
68 
69 
72  DECLARE_FUNCTION(firstDream)
73 
74 
77  DECLARE_FUNCTION(chapter1Init)
78 
79 
82  DECLARE_FUNCTION(chapter1Handler)
83 
84 
87  DECLARE_FUNCTION(chapter1Next)
88 
89 
92  DECLARE_VFUNCTION(chapter2)
93 
94 
97  DECLARE_FUNCTION(chapter2Init)
98 
99 
102  DECLARE_FUNCTION(chapter2Handler)
103 
104 
107  DECLARE_VFUNCTION(chapter3)
108 
109 
112  DECLARE_FUNCTION(chapter3Init)
113 
114 
117  DECLARE_FUNCTION(chapter3Handler)
118 
119 
122  DECLARE_FUNCTION(viennaEvents)
123 
124 
127  DECLARE_VFUNCTION(chapter4)
128 
129 
132  DECLARE_FUNCTION(chapter4Init)
133 
134 
137  DECLARE_FUNCTION(chapter4Handler)
138 
139 
142  DECLARE_VFUNCTION(chapter5)
143 
144 
147  DECLARE_FUNCTION(chapter5Init)
148 
149 
152  DECLARE_FUNCTION(chapter5Handler)
153 
154 private:
155  bool timeCheckEnterStation(TimeValue timeValue, uint &parameter, byte callback, const char *sequence, CityIndex cityIndex);
156  bool timeCheckExitStation(TimeValue timeValue, uint &parameter, byte callback, const char *sequence);
157  void enterExitStation(const SavePoint &savepoint, bool isEnteringStation);
158  void enterExitHelper(bool isEnteringStation);
159  void playSteam() const;
160 };
161 
162 } // End of namespace LastExpress
163 
164 #endif // LASTEXPRESS_CHAPTERS_H
void savegame(const SavePoint &savepoint)
Definition: lastexpress.h:69
Definition: animation.h:45
Definition: entity.h:919
Definition: savepoint.h:54
Definition: chapters.h:31