SKFPlayer Class Reference

#include <SKFPlayer.h>

List of all members.

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
RawArchiveskf
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
RenderSurfacebuffer
RenderedTextsubs
int subtitley
bool introMusicHack


Detailed Description

Definition at line 31 of file SKFPlayer.h.


Constructor & Destructor Documentation

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 (  ) 

Definition at line 83 of file SKFPlayer.cpp.

References buffer, events, skf, and subs.


Member Function Documentation

bool SKFPlayer::isPlaying (  )  const [inline]

Definition at line 41 of file SKFPlayer.h.

References playing.

Referenced by MovieGump::Run().

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().


Member Data Documentation

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]

Definition at line 51 of file SKFPlayer.h.

Referenced by run().

unsigned int SKFPlayer::curevent [private]

Definition at line 52 of file SKFPlayer.h.

Referenced by run().

unsigned int SKFPlayer::curframe [private]

Definition at line 50 of file SKFPlayer.h.

Referenced by run().

unsigned int SKFPlayer::curobject [private]

Definition at line 50 of file SKFPlayer.h.

Referenced by run().

std::vector<SKFEvent*> SKFPlayer::events [private]

Definition at line 49 of file SKFPlayer.h.

Referenced by parseEventList(), run(), and ~SKFPlayer().

uint8 SKFPlayer::fadecolour [private]

Definition at line 57 of file SKFPlayer.h.

Referenced by paint(), and run().

uint8 SKFPlayer::fadelevel [private]

Definition at line 57 of file SKFPlayer.h.

Referenced by paint(), and run().

unsigned int SKFPlayer::framerate [private]

Definition at line 56 of file SKFPlayer.h.

Referenced by run().

int SKFPlayer::height [private]

Definition at line 47 of file SKFPlayer.h.

Referenced by paint(), SKFPlayer(), and start().

bool SKFPlayer::introMusicHack [private]

Definition at line 61 of file SKFPlayer.h.

Referenced by run(), and stop().

unsigned int SKFPlayer::lastupdate [private]

Definition at line 54 of file SKFPlayer.h.

Referenced by run(), and start().

bool SKFPlayer::playing [private]

Definition at line 53 of file SKFPlayer.h.

Referenced by isPlaying(), run(), start(), and stop().

RawArchive* SKFPlayer::skf [private]

Definition at line 48 of file SKFPlayer.h.

Referenced by run(), SKFPlayer(), and ~SKFPlayer().

RenderedText* SKFPlayer::subs [private]

Definition at line 59 of file SKFPlayer.h.

Referenced by paint(), run(), and ~SKFPlayer().

int SKFPlayer::subtitley [private]

Definition at line 60 of file SKFPlayer.h.

Referenced by paint(), and run().

unsigned int SKFPlayer::timer [private]

Definition at line 55 of file SKFPlayer.h.

Referenced by run().

int SKFPlayer::width [private]

Definition at line 47 of file SKFPlayer.h.

Referenced by paint(), SKFPlayer(), and start().


The documentation for this class was generated from the following files:
Generated on Fri Jul 27 22:29:56 2007 for pentagram by  doxygen 1.4.7