ScummVM API documentation
rebecca.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_REBECCA_H
23 #define LASTEXPRESS_REBECCA_H
24 
25 #include "lastexpress/entities/entity.h"
26 
27 namespace LastExpress {
28 
29 class LastExpressEngine;
30 
31 class Rebecca : public Entity {
32 public:
33  Rebecca(LastExpressEngine *engine);
34  ~Rebecca() override {}
35 
39  DECLARE_FUNCTION(reset)
40 
41 
46  DECLARE_FUNCTION_1(updateFromTime, uint32 time)
47 
48 
53  DECLARE_VFUNCTION_1(playSound, const char *filename)
54 
55 
60  DECLARE_FUNCTION_1(playSound16, const char *filename)
61 
62 
70  DECLARE_FUNCTION_4(callSavepoint, const char *sequence1, EntityIndex entity, ActionIndex action, const char *sequence2)
71 
72 
77  DECLARE_FUNCTION_1(draw, const char *sequence)
78 
79 
85  DECLARE_VFUNCTION_2(enterExitCompartment, const char *sequence, ObjectIndex compartment)
86 
87 
93  DECLARE_FUNCTION_2(enterExitCompartment2, const char *sequence, ObjectIndex compartment)
94 
95 
101  DECLARE_FUNCTION_2(enterExitCompartment3, const char *sequence, ObjectIndex compartment)
102 
103 
106  DECLARE_FUNCTION(callbackActionOnDirection)
107 
108 
111  DECLARE_FUNCTION(callbackActionRestaurantOrSalon)
112 
113 
119  DECLARE_VFUNCTION_2(updateEntity, CarIndex car, EntityPosition entityPosition)
120 
121 
122 
129  DECLARE_FUNCTION_3(updatePosition, const char *sequence1, CarIndex car, Position position)
130 
131 
138  DECLARE_FUNCTION_3(draw2, const char *sequence1, const char *sequence2, EntityIndex entity)
139 
140  DECLARE_FUNCTION(function15)
141  DECLARE_FUNCTION_1(function16, bool)
142  DECLARE_FUNCTION_1(function17, bool)
143  DECLARE_FUNCTION(function18)
144  DECLARE_FUNCTION(function19)
145  DECLARE_FUNCTION_1(function20, TimeValue timeValue)
146 
147 
150  DECLARE_VFUNCTION(chapter1)
151 
152 
155  DECLARE_FUNCTION(chapter1Handler)
156 
157  DECLARE_FUNCTION(function23)
158  DECLARE_FUNCTION(function24)
159  DECLARE_FUNCTION(function25)
160  DECLARE_FUNCTION(function26)
161  DECLARE_FUNCTION(function27)
162 
163 
166  DECLARE_VFUNCTION(chapter2)
167 
168 
171  DECLARE_FUNCTION(chapter2Handler)
172 
173  DECLARE_FUNCTION(function30)
174  DECLARE_FUNCTION(function31)
175 
176 
179  DECLARE_VFUNCTION(chapter3)
180 
181 
184  DECLARE_FUNCTION(chapter3Handler)
185 
186  DECLARE_FUNCTION(function34)
187  DECLARE_FUNCTION(function35)
188  DECLARE_FUNCTION(function36)
189  DECLARE_FUNCTION(function37)
190  DECLARE_FUNCTION(function38)
191  DECLARE_FUNCTION(function39)
192  DECLARE_FUNCTION(function40)
193  DECLARE_FUNCTION(function41)
194 
195 
198  DECLARE_VFUNCTION(chapter4)
199 
200 
203  DECLARE_FUNCTION(chapter4Handler)
204 
205  DECLARE_FUNCTION(function44)
206  DECLARE_FUNCTION(function45)
207 
208 
211  DECLARE_VFUNCTION(chapter5)
212 
213 
216  DECLARE_FUNCTION(chapter5Handler)
217 
218  DECLARE_FUNCTION(function48)
219 
220  DECLARE_NULL_FUNCTION()
221 };
222 
223 } // End of namespace LastExpress
224 
225 #endif // LASTEXPRESS_REBECCA_H
void updateFromTime(const SavePoint &savepoint)
Definition: lastexpress.h:69
void updateEntity(const SavePoint &savepoint, bool handleExcuseMe=false)
Definition: rebecca.h:31
Definition: animation.h:45
void draw2(const SavePoint &savepoint)
Definition: entity.h:919
void updatePosition(const SavePoint &savepoint, bool handleExcuseMe=false)
void draw(const SavePoint &savepoint, bool handleExcuseMe=false)
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 callSavepoint(const SavePoint &savepoint, bool handleExcuseMe=false)
void callbackActionRestaurantOrSalon(const SavePoint &savepoint)
void enterExitCompartment(const SavePoint &savepoint, EntityPosition position1=kPositionNone, EntityPosition position2=kPositionNone, CarIndex car=kCarNone, ObjectIndex compartment=kObjectNone, bool alternate=false, bool updateLocation=false)