ScummVM API documentation
waiter1.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_WAITER1_H
23 #define LASTEXPRESS_WAITER1_H
24 
25 #include "lastexpress/entities/entity.h"
26 
27 namespace LastExpress {
28 
29 class LastExpressEngine;
30 
31 class Waiter1 : public Entity {
32 public:
33  Waiter1(LastExpressEngine *engine);
34  ~Waiter1() override {}
35 
44  DECLARE_FUNCTION_4(callSavepoint, const char *sequence1, EntityIndex entity, ActionIndex action, const char *sequence2)
45 
46 
52  DECLARE_FUNCTION_NOSETUP(updateFromTime)
53 
54 
59  DECLARE_FUNCTION_1(draw, const char *sequence)
60 
61 
68  DECLARE_FUNCTION_3(updatePosition, const char *sequence1, CarIndex car, Position position)
69 
70 
73  DECLARE_FUNCTION_NOSETUP(callbackActionOnDirection)
74 
75 
80  DECLARE_VFUNCTION_1(playSound, const char *filename)
81 
82  DECLARE_FUNCTION(rebeccaFeedUs)
83  DECLARE_FUNCTION(rebeccaClearOurTable)
84  DECLARE_FUNCTION(abbotCheckMe)
85  DECLARE_FUNCTION(abbotClearTable)
86 
87 
90  DECLARE_VFUNCTION(chapter1)
91  DECLARE_FUNCTION(annaOrder)
92  DECLARE_FUNCTION(augustOrder)
93  DECLARE_FUNCTION(serveAnna)
94  DECLARE_FUNCTION(serveAugust)
95  DECLARE_FUNCTION(clearAnna)
96  DECLARE_FUNCTION(clearTatiana)
97  DECLARE_FUNCTION(clearAugust1)
98  DECLARE_FUNCTION(clearAugust2)
99  DECLARE_FUNCTION(servingDinner)
100  DECLARE_FUNCTION(function21)
101  DECLARE_FUNCTION(function22)
102 
103 
106  DECLARE_VFUNCTION(chapter2)
107  DECLARE_FUNCTION(inKitchen)
108  DECLARE_FUNCTION(augustComeHere2)
109  DECLARE_FUNCTION(augustClearTable2)
110 
111 
114  DECLARE_VFUNCTION(chapter3)
115  DECLARE_FUNCTION(serving3)
116  DECLARE_FUNCTION(annaComeHere3)
117  DECLARE_FUNCTION(abbotServeLunch3)
118 
119 
122  DECLARE_VFUNCTION(chapter4)
123  DECLARE_FUNCTION(serving4)
124  DECLARE_FUNCTION(augustOrder4)
125  DECLARE_FUNCTION(serveAugust4)
126  DECLARE_FUNCTION(augustClearTable)
127 
128 
131  DECLARE_VFUNCTION(chapter5)
132 
133 
136  DECLARE_FUNCTION(chapter5Handler)
137 
138  DECLARE_NULL_FUNCTION()
139 
140 private:
141  void handleServer(const SavePoint &savepoint, const char *name, EntityIndex entity, ActionIndex action, uint *parameter, const char *name2 = "");
142  void serveTable(const SavePoint &savepoint, const char *seq1, EntityIndex entity, const char *seq2, const char *seq3, const char *seq4, uint *parameter, bool shouldUpdatePosition = true, bool pushSavepoint = false, Position position = 0);
143 };
144 
145 } // End of namespace LastExpress
146 
147 #endif // LASTEXPRESS_WAITER1_H
void updateFromTime(const SavePoint &savepoint)
Definition: waiter1.h:31
Definition: lastexpress.h:69
Definition: animation.h:45
Definition: entity.h:919
Definition: savepoint.h:54
void updatePosition(const SavePoint &savepoint, bool handleExcuseMe=false)
void draw(const SavePoint &savepoint, bool handleExcuseMe=false)
void callbackActionOnDirection(const SavePoint &savepoint)
void playSound(const SavePoint &savepoint, bool resetItem=false, SoundFlag flag=kSoundVolumeEntityDefault)
void callSavepoint(const SavePoint &savepoint, bool handleExcuseMe=false)