ScummVM API documentation
coudert.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_COUDERT_H
23 #define LASTEXPRESS_COUDERT_H
24 
25 #include "lastexpress/entities/entity.h"
26 namespace LastExpress {
27 
28 class LastExpressEngine;
29 
30 class Coudert : public Entity {
31 public:
32  Coudert(LastExpressEngine *engine);
33  ~Coudert() override {}
34 
38  DECLARE_FUNCTION(reset)
39 
40 
45  DECLARE_FUNCTION_1(bloodJacket, const char *sequence)
46 
47 
53  DECLARE_VFUNCTION_2(enterExitCompartment, const char *sequence, ObjectIndex compartment)
54 
55 
58  DECLARE_FUNCTION(callbackActionOnDirection)
59 
60 
68  DECLARE_FUNCTION_4(enterExitCompartment2, const char *sequence, ObjectIndex compartment, EntityPosition entityPosition1, EntityPosition entityPosition2)
69 
70 
75  DECLARE_VFUNCTION_1(playSound, const char *filename)
76 
77 
83  DECLARE_FUNCTION_NOSETUP(playSound16)
84 
85 
91  DECLARE_VFUNCTION_2(savegame, SavegameType savegameType, uint32 param)
92 
93 
99  DECLARE_VFUNCTION_2(updateEntity, CarIndex car, EntityPosition entityPosition)
100 
101 
106  DECLARE_FUNCTION_1(updateFromTime, uint32 time)
107 
108 
113  DECLARE_FUNCTION_1(updateFromTicks, uint32 ticks)
114 
115  DECLARE_FUNCTION_1(excuseMe, EntityIndex entity)
116  DECLARE_FUNCTION_2(function13, bool, EntityIndex entity)
117  DECLARE_FUNCTION_1(function14, EntityIndex entity)
118  DECLARE_FUNCTION_1(function15, bool)
119  DECLARE_FUNCTION(function16)
120  DECLARE_FUNCTION_1(function17, bool)
121  DECLARE_FUNCTION(function18)
122  DECLARE_FUNCTION_1(function19, bool)
123 
124 
130  DECLARE_FUNCTION_2(function20, ObjectIndex object1, ObjectIndex object2)
131 
132  DECLARE_FUNCTION(function21)
133  DECLARE_FUNCTION(function22)
134  DECLARE_FUNCTION(function23)
135  DECLARE_FUNCTION(visitCompartmentF)
136  DECLARE_FUNCTION(function25)
137  DECLARE_FUNCTION(function26)
138  DECLARE_FUNCTION(function27)
139  DECLARE_FUNCTION(visitCompartmentB)
140  DECLARE_FUNCTION(visitCompartmentA)
141 
142 
147  DECLARE_FUNCTION_1(function30, ObjectIndex compartment)
148 
149  DECLARE_FUNCTION_1(function31, uint32)
150  DECLARE_FUNCTION(function32)
151  DECLARE_FUNCTION(function33)
152  DECLARE_FUNCTION_1(function34, bool)
153  DECLARE_FUNCTION_1(function35, bool)
154 
155 
158  DECLARE_VFUNCTION(chapter1)
159  DECLARE_FUNCTION(function37)
160  DECLARE_FUNCTION(function38)
161  DECLARE_FUNCTION(function39)
162 
163 
166  DECLARE_FUNCTION(chapter1Handler)
167 
168  DECLARE_FUNCTION(function41)
169 
170 
173  DECLARE_VFUNCTION(chapter2)
174 
175  DECLARE_FUNCTION(function43)
176 
177 
180  DECLARE_VFUNCTION(chapter3)
181 
182  DECLARE_FUNCTION(function45)
183  DECLARE_FUNCTION(function46)
184  DECLARE_FUNCTION_1(function47, bool)
185  DECLARE_FUNCTION(function48)
186  DECLARE_FUNCTION(function49)
187  DECLARE_FUNCTION(function50)
188  DECLARE_FUNCTION(function51)
189 
190 
193  DECLARE_VFUNCTION(chapter4)
194 
195  DECLARE_FUNCTION(function53)
196  DECLARE_FUNCTION(function54)
197  DECLARE_FUNCTION(function55)
198  DECLARE_FUNCTION(function56)
199 
200 
203  DECLARE_VFUNCTION(chapter5)
204 
205 
208  DECLARE_FUNCTION(chapter5Handler)
209 
210  DECLARE_FUNCTION(function59)
211  DECLARE_FUNCTION(function60)
212  DECLARE_FUNCTION(function61)
213  DECLARE_FUNCTION(function62)
214 
215  DECLARE_NULL_FUNCTION()
216 
217 private:
218  void visitCompartment(const SavePoint &savepoint, EntityPosition position, const char *seq1, ObjectIndex compartment, const char *seq2, const char *seq3, EntityPosition sittingPosition, ObjectIndex object, const char *seq4);
219 };
220 
221 } // End of namespace LastExpress
222 
223 #endif // LASTEXPRESS_COUDERT_H
void updateFromTime(const SavePoint &savepoint)
void updateFromTicks(const SavePoint &savepoint)
void savegame(const SavePoint &savepoint)
Definition: coudert.h:30
Definition: lastexpress.h:69
void updateEntity(const SavePoint &savepoint, bool handleExcuseMe=false)
Definition: animation.h:45
Definition: entity.h:919
Definition: savepoint.h:54
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)