MovieGump Class Reference

#include <MovieGump.h>

Inheritance diagram for MovieGump:

ModalGump Gump Object List of all members.

Public Member Functions

 MovieGump ()
 MovieGump (int width, int height, RawArchive *skf, bool introMusicHack=false, uint32 _Flags=0, sint32 layer=LAYER_MODAL)
virtual ~MovieGump (void)
virtual void InitGump (Gump *newparent, bool take_focus=true)
virtual void Close (bool no_del=false)
virtual bool Run (const uint32 framenum)
virtual void PaintThis (RenderSurface *, sint32 lerp_factor, bool scaled)
virtual bool OnKeyDown (int key, int mod)
bool loadData (IDataSource *ids)

Static Public Member Functions

static ProcId U8MovieViewer (RawArchive *skf, bool introMusicHack=false)
static void ConCmd_play (const Console::ArgvType &argv)

Protected Member Functions

virtual void saveData (ODataSource *ods)

Protected Attributes


Detailed Description

Definition at line 27 of file MovieGump.h.

Constructor & Destructor Documentation

MovieGump::MovieGump (  ) 

Definition at line 35 of file MovieGump.cpp.

Referenced by U8MovieViewer().

MovieGump::MovieGump ( int  width,
int  height,
RawArchive skf,
bool  introMusicHack = false,
uint32  _Flags = 0,
sint32  layer = LAYER_MODAL 

Definition at line 41 of file MovieGump.cpp.

References player.

MovieGump::~MovieGump ( void   )  [virtual]

Definition at line 48 of file MovieGump.cpp.

References player.

Member Function Documentation

void MovieGump::Close ( bool  no_del = false  )  [virtual]

Close the gump

no_del If true, do not delete after closing

Reimplemented from ModalGump.

Definition at line 62 of file MovieGump.cpp.

References ModalGump::Close(), GUIApp::get_instance(), and GUIApp::popMouseCursor().

Referenced by OnKeyDown(), and Run().

void MovieGump::ConCmd_play ( const Console::ArgvType argv  )  [static]

"play" console command

Definition at line 112 of file MovieGump.cpp.

References FileSystem::get_instance(), pout, FileSystem::ReadFile(), and U8MovieViewer().

Referenced by GUIApp::shutdownGame(), and GUIApp::startupGame().


Reimplemented from ModalGump.

void MovieGump::InitGump ( Gump newparent,
bool  take_focus = true 
) [virtual]

Init the gump and add it to parent; call after construction When newparent is 0, this will call GUIApp::addGump().

newparent The Gump's new parent or 0.
takefocus If true, set parent's focus_child to this

Reimplemented from ModalGump.

Definition at line 53 of file MovieGump.cpp.

References GUIApp::get_instance(), ModalGump::InitGump(), GUIApp::MOUSE_NONE, player, GUIApp::pushMouseCursor(), GUIApp::setMouseCursor(), and SKFPlayer::start().

bool MovieGump::loadData ( IDataSource ids  ) 

Definition at line 132 of file MovieGump.cpp.

bool MovieGump::OnKeyDown ( int  key,
int  mod 
) [virtual]

Reimplemented from Gump.

Definition at line 86 of file MovieGump.cpp.

References Close().

void MovieGump::PaintThis ( RenderSurface ,
sint32  lerp_factor,
bool  scaled 
) [virtual]

Overloadable method to Paint just this Gump (RenderSurface is relative to this).

Reimplemented from Gump.

Definition at line 81 of file MovieGump.cpp.

References SKFPlayer::paint(), and player.

bool MovieGump::Run ( const uint32  framenum  )  [virtual]

Run the gump

true if repaint required

Reimplemented from Gump.

Definition at line 69 of file MovieGump.cpp.

References Close(), SKFPlayer::isPlaying(), player, SKFPlayer::run(), and Gump::Run().

void MovieGump::saveData ( ODataSource ods  )  [protected, virtual]

save the actual Object data

Reimplemented from ModalGump.

Definition at line 137 of file MovieGump.cpp.

ProcId MovieGump::U8MovieViewer ( RawArchive skf,
bool  introMusicHack = false 
) [static]

Definition at line 102 of file MovieGump.cpp.

References Gump::CENTER, Gump::CreateNotifier(), Gump::GetNotifyProcess(), Process::getPid(), Gump::InitGump(), MovieGump(), and Gump::setRelativePosition().

Referenced by ConCmd_play(), U8Game::playEndgameMovie(), and U8Game::playIntroMovie().

Member Data Documentation

SKFPlayer* MovieGump::player [protected]

Definition at line 57 of file MovieGump.h.

Referenced by InitGump(), MovieGump(), PaintThis(), Run(), and ~MovieGump().

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