ScummVM API documentation
skf_player.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 ULTIMA8_GFX_SKFPLAYER_H
23#define ULTIMA8_GFX_SKFPLAYER_H
24
25#include "ultima/ultima8/gfx/movie_player.h"
26#include "ultima/ultima8/gfx/palette.h"
27#include "ultima/ultima8/gfx/render_surface.h"
28
29namespace Common {
30class SeekableReadStream;
31}
32
33namespace Ultima {
34namespace Ultima8 {
35
36struct SKFEvent;
37class RawArchive;
38class RenderedText;
39class Palette;
40
41class SKFPlayer : public MoviePlayer {
42public:
43 SKFPlayer(Common::SeekableReadStream *rs, int width, int height, bool introMusicHack = false);
44 ~SKFPlayer();
45
46 void run();
47 void paint(RenderSurface *surf, int lerp);
48
49 void start();
50 void stop();
51 bool isPlaying() const {
52 return _playing;
53 }
54
55private:
56
57 void parseEventList(Common::ReadStream *rs);
58
59 int _width, _height;
60 RawArchive *_skf;
62 unsigned int _curFrame, _curObject;
63 unsigned int _curAction;
64 unsigned int _curEvent;
65 bool _playing;
66 unsigned int _lastUpdate;
67 unsigned int _timer;
68 unsigned int _frameRate;
69 uint8 _fadeColour, _fadeLevel;
70 RenderSurface *_buffer;
71 Palette _palette;
72 RenderedText *_subs;
73 int _subtitleY;
74 bool _introMusicHack;
75};
76
77} // End of namespace Ultima8
78} // End of namespace Ultima
79
80#endif
Definition: stream.h:385
Definition: stream.h:745
Definition: atari-screen.h:42
Definition: movie_player.h:30
Definition: palette.h:36
Definition: raw_archive.h:33
Definition: render_surface.h:37
Definition: rendered_text.h:32
Definition: skf_player.h:41
Definition: algorithm.h:29