ScummVM API documentation
gendarmes.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_GENDARMES_H
23 #define LASTEXPRESS_GENDARMES_H
24 
25 #include "lastexpress/entities/entity.h"
26 
27 #include "lastexpress/sound/sound.h"
28 
29 namespace LastExpress {
30 
31 class LastExpressEngine;
32 
33 class Gendarmes : public Entity {
34 public:
36  ~Gendarmes() override {}
37 
41  DECLARE_FUNCTION(reset)
42 
43 
46  DECLARE_VFUNCTION(chapter1)
47 
48  DECLARE_FUNCTION_1(doDraw, const char *sequence)
49  DECLARE_FUNCTION_1(doDialog, const char *soundName)
50  DECLARE_FUNCTION_1(doDialogFullVolume, const char *soundName)
51  DECLARE_FUNCTION_1(doWait, uint32 timeValue)
52 
53 
59  DECLARE_VFUNCTION_2(savegame, SavegameType savegameType, uint32 param)
60 
61  DECLARE_FUNCTION_2(doWalk, CarIndex car, EntityPosition entityPosition)
62  DECLARE_FUNCTION_4(doCompartment, CarIndex car, EntityPosition entityPosition, const char *sequence1, const char *sequence2)
63  DECLARE_FUNCTION_3(trappedCath, CarIndex car, EntityPosition entityPosition, ObjectIndex object)
64  DECLARE_FUNCTION(chapter1Handler)
65  DECLARE_FUNCTION(searchTrain)
66  DECLARE_FUNCTION(function13)
67 
68 
71  DECLARE_VFUNCTION(chapter2)
72 
73 
76  DECLARE_VFUNCTION(chapter3)
77 
78 
81  DECLARE_VFUNCTION(chapter4)
82 
83 
86  DECLARE_VFUNCTION(chapter5)
87 
88 private:
89  void handleAction(const SavePoint &savepoint, bool playSound = false, SoundFlag flag = kSoundVolumeEntityDefault, bool checkCallback = false, bool shouldUpdateEntity = false);
90 };
91 
92 } // End of namespace LastExpress
93 
94 #endif // LASTEXPRESS_GENDARMES_H
void savegame(const SavePoint &savepoint)
Definition: lastexpress.h:69
Definition: animation.h:45
Definition: entity.h:919
Definition: savepoint.h:54
void reset(const SavePoint &savepoint, ClothesIndex maxClothes=kClothesDefault, bool resetItem=false)
Definition: gendarmes.h:33
void playSound(const SavePoint &savepoint, bool resetItem=false, SoundFlag flag=kSoundVolumeEntityDefault)