ScummVM API documentation
mertens.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_MERTENS_H
23 #define LASTEXPRESS_MERTENS_H
24 
25 #include "lastexpress/entities/entity.h"
26 
27 namespace LastExpress {
28 
29 class LastExpressEngine;
30 
31 class Mertens : public Entity {
32 private:
33  // The type of action when entering Tyler compartment
34  enum MertensActionType {
35  kMertensActionNone = 0,
36  kMertensAction1 = 1,
37  kMertensAction2 = 2,
38  kMertensAction3 = 3
39  };
40 
41 public:
42  Mertens(LastExpressEngine *engine);
43  ~Mertens() override {}
44 
48  DECLARE_FUNCTION(reset)
49 
50 
55  DECLARE_FUNCTION_1(bloodJacket, const char *sequence)
56 
57 
63  DECLARE_VFUNCTION_2(enterExitCompartment, const char *sequence, ObjectIndex compartment)
64 
65 
71  DECLARE_FUNCTION_2(enterExitCompartment2, const char *sequence, ObjectIndex compartment)
72 
73 
83  DECLARE_FUNCTION_4(enterExitCompartment3, const char *sequence, ObjectIndex compartment, EntityPosition entityPosition1, EntityPosition entityPosition2)
84 
85 
88  DECLARE_FUNCTION(callbackActionOnDirection)
89 
90 
95  DECLARE_VFUNCTION_1(playSound, const char *filename)
96 
97 
102  DECLARE_FUNCTION_1(playSound16, const char *filename)
103 
104 
110  DECLARE_VFUNCTION_2(savegame, SavegameType savegameType, uint32 param)
111 
112 
118  DECLARE_VFUNCTION_2(updateEntity, CarIndex car, EntityPosition entityPosition)
119 
120  DECLARE_FUNCTION_1(function11, uint32 time)
121 
122 
127  DECLARE_FUNCTION_1(bonsoir, EntityIndex entity)
128  DECLARE_FUNCTION_2(function13, bool, EntityIndex entity)
129  DECLARE_FUNCTION_1(function14, EntityIndex entity)
130  DECLARE_FUNCTION_1(function15, bool)
131  DECLARE_FUNCTION_1(function16, bool)
132  DECLARE_FUNCTION(function17)
133  DECLARE_FUNCTION(function18)
134  DECLARE_FUNCTION(function19)
135  DECLARE_FUNCTION(function20)
136 
137 
143  DECLARE_FUNCTION_2(function21, ObjectIndex object1, ObjectIndex object2)
144  DECLARE_FUNCTION(function22)
145  DECLARE_FUNCTION(function23)
146  DECLARE_FUNCTION(function24)
147  DECLARE_FUNCTION(function25)
148  DECLARE_FUNCTION_1(function26, bool)
149  DECLARE_FUNCTION_1(tylerCompartment, MertensActionType action)
150  DECLARE_FUNCTION_1(function28, const char *soundName)
151  DECLARE_FUNCTION_2(function29, const char *soundName1, const char *soundName2)
152  DECLARE_FUNCTION_1(function30, MertensActionType action)
153  DECLARE_FUNCTION_1(function31, MertensActionType action)
154  DECLARE_FUNCTION(function32)
155  DECLARE_FUNCTION(function33)
156 
157 
160  DECLARE_VFUNCTION(chapter1)
161  DECLARE_FUNCTION(function35)
162  DECLARE_FUNCTION(function36)
163  DECLARE_FUNCTION(function37)
164  DECLARE_FUNCTION(function38)
165  DECLARE_FUNCTION(function39)
166  DECLARE_FUNCTION(function40)
167 
168 
171  DECLARE_FUNCTION(chapter1Handler)
172 
173  DECLARE_FUNCTION(function42)
174 
175 
178  DECLARE_VFUNCTION(chapter2)
179 
180  DECLARE_FUNCTION(function44)
181 
182 
185  DECLARE_VFUNCTION(chapter3)
186 
187  DECLARE_FUNCTION(function46)
188 
189 
192  DECLARE_VFUNCTION(chapter4)
193 
194  DECLARE_FUNCTION(function48)
195  DECLARE_FUNCTION(function49)
196 
197 
200  DECLARE_VFUNCTION(chapter5)
201 
202 
205  DECLARE_FUNCTION(chapter5Handler)
206 
207  DECLARE_FUNCTION(function52)
208  DECLARE_FUNCTION(function53)
209 
210  DECLARE_NULL_FUNCTION()
211 
212 private:
213  void loadSceneFromPosition();
214 };
215 
216 } // End of namespace LastExpress
217 
218 #endif // LASTEXPRESS_MERTENS_H
void savegame(const SavePoint &savepoint)
Definition: mertens.h:31
Definition: lastexpress.h:69
void updateEntity(const SavePoint &savepoint, bool handleExcuseMe=false)
Definition: animation.h:45
Definition: entity.h:919
void callbackActionOnDirection(const SavePoint &savepoint)
void reset(const SavePoint &savepoint, ClothesIndex maxClothes=kClothesDefault, bool resetItem=false)
void playSound(const SavePoint &savepoint, bool resetItem=false, SoundFlag flag=kSoundVolumeEntityDefault)
void enterExitCompartment(const SavePoint &savepoint, EntityPosition position1=kPositionNone, EntityPosition position2=kPositionNone, CarIndex car=kCarNone, ObjectIndex compartment=kObjectNone, bool alternate=false, bool updateLocation=false)