#include <SKFPlayer.h>
Public Member Functions | |
SKFPlayer (RawArchive *movie, int width, int height, bool introMusicHack=false) | |
~SKFPlayer () | |
void | run () |
void | paint (RenderSurface *surf, int lerp) |
void | start () |
void | stop () |
bool | isPlaying () const |
Private Member Functions | |
void | parseEventList (IDataSource *eventlist) |
Private Attributes | |
int | width |
int | height |
RawArchive * | skf |
std::vector< SKFEvent * > | events |
unsigned int | curframe |
unsigned int | curobject |
unsigned int | curaction |
unsigned int | curevent |
bool | playing |
unsigned int | lastupdate |
unsigned int | timer |
unsigned int | framerate |
uint8 | fadecolour |
uint8 | fadelevel |
RenderSurface * | buffer |
RenderedText * | subs |
int | subtitley |
bool | introMusicHack |
Definition at line 31 of file SKFPlayer.h.
SKFPlayer::SKFPlayer | ( | RawArchive * | movie, | |
int | width, | |||
int | height, | |||
bool | introMusicHack = false | |||
) |
Definition at line 64 of file SKFPlayer.cpp.
References buffer, RenderSurface::CreateSecondaryRenderSurface(), RawArchive::get_datasource(), height, parseEventList(), perr, skf, and width.
SKFPlayer::~SKFPlayer | ( | ) |
bool SKFPlayer::isPlaying | ( | ) | const [inline] |
void SKFPlayer::paint | ( | RenderSurface * | surf, | |
int | lerp | |||
) |
Definition at line 125 of file SKFPlayer.cpp.
References RenderSurface::Blit(), buffer, RenderedText::draw(), RenderedText::drawBlended(), fadecolour, RenderSurface::FadedBlit(), fadelevel, FADESTEPS, RenderSurface::GetSurfaceAsTexture(), height, subs, subtitley, and width.
Referenced by MovieGump::PaintThis().
void SKFPlayer::parseEventList | ( | IDataSource * | eventlist | ) | [private] |
Definition at line 93 of file SKFPlayer.cpp.
References SKFEvent::action, SKFEvent::data, events, SKFEvent::frame, frame, and IDataSource::read2().
Referenced by SKFPlayer().
void SKFPlayer::run | ( | ) |
Definition at line 144 of file SKFPlayer.cpp.
References RenderSurface::BeginPainting(), buffer, curaction, curevent, curframe, curobject, RenderSurface::EndPainting(), events, fadecolour, fadelevel, FADESTEPS, framerate, RawArchive::get_datasource(), PaletteManager::get_instance(), AudioProcess::get_instance(), MusicProcess::get_instance(), FontManager::get_instance(), RawArchive::get_object(), RawArchive::get_size(), Pentagram::Archive::getCount(), FontManager::getGameFont(), PaletteManager::getPalette(), IDataSource::getSize(), introMusicHack, lastupdate, PaletteManager::load(), RenderSurface::Paint(), pal, PaletteManager::Pal_Movie, playing, MusicProcess::playMusic(), AudioProcess::playSample(), AudioProcess::playSFX(), pout, IDataSource::read2(), Pentagram::Font::renderText(), IDataSource::seek(), Shape::setPalette(), skf, SKF_ClearSubs, SKF_FadeIn, SKF_FadeOut, SKF_FadeWhite, SKF_PlayMusic, SKF_PlaySFX, SKF_PlaySound, SKF_SetSpeed, SKF_SlowStopMusic, SKF_StopSFX, SKF_Wait, stop(), AudioProcess::stopSFX(), subs, subtitley, Pentagram::Font::TEXT_CENTER, timer, and U8SKFShapeFormat.
Referenced by MovieGump::Run().
void SKFPlayer::start | ( | ) |
Definition at line 107 of file SKFPlayer.cpp.
References RenderSurface::BeginPainting(), buffer, RenderSurface::EndPainting(), RenderSurface::Fill32(), MusicProcess::get_instance(), height, lastupdate, playing, MusicProcess::playMusic(), and width.
Referenced by MovieGump::InitGump().
void SKFPlayer::stop | ( | ) |
Definition at line 118 of file SKFPlayer.cpp.
References MusicProcess::get_instance(), introMusicHack, playing, and MusicProcess::playMusic().
Referenced by run().
RenderSurface* SKFPlayer::buffer [private] |
Definition at line 58 of file SKFPlayer.h.
Referenced by paint(), run(), SKFPlayer(), start(), and ~SKFPlayer().
unsigned int SKFPlayer::curaction [private] |
unsigned int SKFPlayer::curevent [private] |
unsigned int SKFPlayer::curframe [private] |
unsigned int SKFPlayer::curobject [private] |
std::vector<SKFEvent*> SKFPlayer::events [private] |
uint8 SKFPlayer::fadecolour [private] |
uint8 SKFPlayer::fadelevel [private] |
unsigned int SKFPlayer::framerate [private] |
int SKFPlayer::height [private] |
bool SKFPlayer::introMusicHack [private] |
unsigned int SKFPlayer::lastupdate [private] |
bool SKFPlayer::playing [private] |
RawArchive* SKFPlayer::skf [private] |
RenderedText* SKFPlayer::subs [private] |
int SKFPlayer::subtitley [private] |
unsigned int SKFPlayer::timer [private] |
int SKFPlayer::width [private] |