ScummVM API documentation
play_break.h
1 
2 /* ScummVM - Graphic Adventure Engine
3  *
4  * ScummVM is the legal property of its developers, whose names
5  * are too numerous to list here. Please refer to the COPYRIGHT
6  * file distributed with this source distribution.
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 
23 #ifndef M4_BURGER_PLAY_BREAK_H
24 #define M4_BURGER_PLAY_BREAK_H
25 
26 #include "m4/m4_types.h"
27 #include "m4/adv_r/adv_trigger.h"
28 
29 namespace M4 {
30 namespace Burger {
31 
33  int32 firstFrame;
34  int32 lastFrame;
35  const char *sound;
36  int32 channel;
37  int32 volume;
38  int32 trigger;
39  uint32 flags;
40  int32 loopCount;
41  int32 *variable;
42  int32 value;
43 };
44 
45 enum {
46  WITH_SHADOW = 1,
47  PRELOAD_SOUNDS = 2
48 };
49 
50 #define PLAY_BREAK_END { -1, -1, nullptr, 0, 0, -1, 0, 0, nullptr, 0 }
51 
52 int32 series_play_with_breaks(const seriesPlayBreak list[], const char *name,
53  frac16 depth = 0, int32 trigger = NO_TRIGGER, uint32 flags = 0, int32 framerate = 6,
54  int32 scale = 100, int32 x = 0, int32 y = 0);
55 void digi_preload_play_breaks(const seriesPlayBreak list[], bool loadAll = false);
56 void digi_unload_play_breaks(const seriesPlayBreak list[]);
57 void handle_series_play_break(int32 slot);
58 
59 } // namespace Burger
60 } // namespace M4
61 
62 #endif
intptr frac16
Definition: m4_types.h:46
Graphics::Surface * scale(const Graphics::Surface &srcImage, int xSize, int ySize)
Definition: database.h:28
Definition: play_break.h:32