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
29
namespace
Common
{
30
class
SeekableReadStream;
31
}
32
33
namespace
Ultima {
34
namespace
Ultima8 {
35
36
struct
SKFEvent;
37
class
RawArchive;
38
class
RenderedText;
39
class
Palette
;
40
41
class
SKFPlayer
:
public
MoviePlayer
{
42
public
:
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
55
private
:
56
57
void
parseEventList(
Common::ReadStream
*rs);
58
59
int
_width, _height;
60
RawArchive
*_skf;
61
Common::Array<SKFEvent *>
_events;
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
Common::Array< SKFEvent * >
Common::ReadStream
Definition:
stream.h:385
Common::SeekableReadStream
Definition:
stream.h:745
Palette
Definition:
atari-screen.h:42
Ultima::Ultima8::MoviePlayer
Definition:
movie_player.h:30
Ultima::Ultima8::Palette
Definition:
palette.h:36
Ultima::Ultima8::RawArchive
Definition:
raw_archive.h:33
Ultima::Ultima8::RenderSurface
Definition:
render_surface.h:37
Ultima::Ultima8::RenderedText
Definition:
rendered_text.h:32
Ultima::Ultima8::SKFPlayer
Definition:
skf_player.h:41
Common
Definition:
algorithm.h:29
engines
ultima
ultima8
gfx
skf_player.h
Generated on Sat Oct 24 2026 09:26:50 for ScummVM API documentation by
1.9.4