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
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (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, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20  *
21  * Plays films within a scene, takes into account the actor in each 'column'.
22  */
23 
24 #ifndef TINSEL_PLAY_H	// prevent multiple includes
25 #define TINSEL_PLAY_H
26 
27 #include "common/coroutines.h"
28 #include "tinsel/dw.h"
29 #include "tinsel/multiobj.h"
30 
31 namespace Tinsel {
32 
33 #define MAX_SOUNDREELS	5
34 
35 struct SOUNDREELS {
36 	SCNHANDLE hFilm;	// The 'film'
37 	int	column;		// Column number
38 	int	actorCol;
39 };
40 typedef SOUNDREELS *PSOUNDREELS;
41 
42 void PlayFilm(CORO_PARAM, SCNHANDLE film, int x, int y, int actorid, bool splay, bool sfact, bool escOn,
43 			int myescEvent, bool bTop);
44 
45 void PlayFilm(CORO_PARAM, SCNHANDLE hFilm, int x, int y, int myescEvent, bool bTop);
46 
47 void PlayFilmc(CORO_PARAM, SCNHANDLE hFilm, int x, int y, int actorid, bool splay, bool sfact,
48 			bool escOn, int myescEvent, bool bTop);
49 
50 void RestoreActorReels(SCNHANDLE hFilm, short reelnum, short z, int x, int y);
51 void RestoreActorReels(SCNHANDLE hFilm, int actor, int x, int y);
52 
53 void PokeInPalette(const MULTI_INIT *pmi);
54 
55 void NoSoundReels();
56 void SaveSoundReels(PSOUNDREELS psr);
57 void RestoreSoundReels(PSOUNDREELS psr);
58 
59 int ExtractActor(SCNHANDLE hFilm);
60 
61 } // End of namespace Tinsel
62 
63 #endif
64