ScummVM API documentation
waiter2.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_WAITER2_H
23 #define LASTEXPRESS_WAITER2_H
24 
25 #include "lastexpress/entities/entity.h"
26 
27 namespace LastExpress {
28 
29 class LastExpressEngine;
30 
31 class Waiter2 : public Entity {
32 public:
33  Waiter2(LastExpressEngine *engine);
34  ~Waiter2() override {}
35 
42  DECLARE_FUNCTION_NOSETUP(updateFromTime)
43 
44 
49  DECLARE_FUNCTION_1(draw, const char *sequence)
50 
51 
58  DECLARE_FUNCTION_3(updatePosition, const char *sequence, CarIndex car, Position position)
59 
60 
63  DECLARE_FUNCTION(callbackActionOnDirection)
64 
65 
73  DECLARE_FUNCTION_4(callSavepoint, const char *sequence1, EntityIndex entity, ActionIndex action, const char *sequence2)
74 
75 
80  DECLARE_VFUNCTION_1(playSound, const char *filename)
81 
82  DECLARE_FUNCTION(monsieurServeUs)
83 
84 
87  DECLARE_VFUNCTION(chapter1)
88 
89  DECLARE_FUNCTION(milosOrder)
90  DECLARE_FUNCTION(monsieurOrder)
91  DECLARE_FUNCTION(clearAlexei)
92  DECLARE_FUNCTION(clearMilos)
93  DECLARE_FUNCTION(clearMonsieur)
94  DECLARE_FUNCTION(servingDinner)
95  DECLARE_FUNCTION(function15)
96  DECLARE_FUNCTION(function16)
97 
98 
101  DECLARE_VFUNCTION(chapter2)
102  DECLARE_FUNCTION(inKitchen)
103  DECLARE_FUNCTION(tatianaClearTableB)
104  DECLARE_FUNCTION(ivoComeHere)
105  DECLARE_FUNCTION(ivoClearTableC)
106 
107 
110  DECLARE_VFUNCTION(chapter3)
111  DECLARE_FUNCTION(serving3)
112  DECLARE_FUNCTION(annaBringTea3)
113 
114 
117  DECLARE_VFUNCTION(chapter4)
118  DECLARE_FUNCTION(serving4)
119  DECLARE_FUNCTION(augustNeedsADrink)
120  DECLARE_FUNCTION(serveAugustADrink)
121  DECLARE_FUNCTION(annaNeedsADrink)
122 
123 
126  DECLARE_VFUNCTION(chapter5)
127 
128 
131  DECLARE_FUNCTION(chapter5Handler)
132 
133  DECLARE_NULL_FUNCTION()
134 
135 private:
136  void serveTable(const SavePoint &savepoint, const char *seq1, EntityIndex entity, const char *seq2, const char *seq3, const char *seq4, uint *parameter, Position position = 0, bool updatePosition = true, uint *parameter2 = NULL);
137  void serveSalon(const SavePoint &savepoint, const char *seq1, const char *snd1, EntityIndex entity, const char *snd2, const char *seq2, ActionIndex action, const char *seq3, uint *parameter);
138 };
139 
140 } // End of namespace LastExpress
141 
142 #endif // LASTEXPRESS_WAITER2_H
void updateFromTime(const SavePoint &savepoint)
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)
Definition: waiter2.h:31