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