ScummVM API documentation
play.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 * Plays films within a scene, takes into account the actor in each 'column'.
21 */
22
23#ifndef TINSEL_PLAY_H // prevent multiple includes
24#define TINSEL_PLAY_H
25
26#include "common/coroutines.h"
27#include "tinsel/dw.h"
28#include "tinsel/multiobj.h"
29
30namespace Tinsel {
31
32#define MAX_SOUNDREELS 10
33
34struct SOUNDREELS {
35 SCNHANDLE hFilm; // The 'film'
36 int column; // Column number
37 int actorCol;
38};
39
40void PlayFilm(CORO_PARAM, SCNHANDLE film, int x, int y, int actorid, bool splay, bool sfact, bool escOn, int myescEvent, bool bTop, OBJECT** playfield);
41
42void PlayFilm(CORO_PARAM, SCNHANDLE hFilm, int x, int y, int myescEvent, bool bTop, OBJECT** playfield);
43
44void PlayFilmc(CORO_PARAM, SCNHANDLE hFilm, int x, int y, int actorid, bool splay, bool sfact, bool escOn, int myescEvent, bool bTop, OBJECT** playfield);
45
46void RestoreActorReels(SCNHANDLE hFilm, short reelnum, short z, int x, int y);
47void RestoreActorReels(SCNHANDLE hFilm, int actor, int x, int y);
48
49void PokeInPalette(const MULTI_INIT *pmi);
50
51void NoSoundReels();
52void SaveSoundReels(SOUNDREELS *psr);
53void RestoreSoundReels(SOUNDREELS *psr);
54
55int ExtractActor(SCNHANDLE hFilm);
56
57} // End of namespace Tinsel
58
59#endif
#define CORO_PARAM
Definition: coroutines.h:107
Definition: actors.h:36
uint32 SCNHANDLE
Definition: dw.h:31
Definition: multiobj.h:38
Definition: object.h:74
Definition: play.h:34