Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Program Struct Reference

#include </home/clem/local/src/opie/core/multimedia/opieplayer/libflash/program.h>

Collaboration diagram for Program:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Program (FlashMovie *movie, long n)
 ~Program ()
void rewindMovie ()
void pauseMovie ()
void continueMovie ()
void nextStepMovie ()
void gotoFrame (GraphicDevice *gd, long f)
long processMovie (GraphicDevice *, SoundMixer *)
long nestedMovie (GraphicDevice *, SoundMixer *, Matrix *, Cxform *)
long runFrame (GraphicDevice *, SoundMixer *, long f, long action=1)
long handleEvent (GraphicDevice *, SoundMixer *, FlashEvent *)
long doAction (GraphicDevice *gd, ActionRecord *action, SoundMixer *)
void setCurrentFrameLabel (char *label)
void advanceFrame ()
void addControlInCurrentFrame (Control *ctrl)
void setGetUrlMethod (void(*)(char *, char *, void *), void *)
void modifySettings (long flags)
long searchFrame (GraphicDevice *gd, char *, char *)
void validateLoadingFrame ()
long getCurrentFrame ()
void setCurrentFrame (long)
FramegetFrames ()
long getNbFrames ()
DisplayListgetDisplayList ()

Public Attributes

DisplayListdl
Frameframes
long nbFrames
long currentFrame
long loadingFrame
long totalFrames
long nextFrame
int movieWait
MovieStatus movieStatus
SoundcurrentSound
long settings
FlashMoviemovie
long render

Constructor & Destructor Documentation

Program::Program FlashMovie movie,
long  n
 

Definition at line 38 of file program.cc.

References Frame::controls, currentFrame, dl, f, frames, Frame::label, loadingFrame, MoviePlay, movieStatus, movieWait, nbFrames, nextFrame, NULL, settings, and totalFrames.

Program::~Program  ) 
 

Definition at line 70 of file program.cc.

References Frame::controls, dl, frames, i, nbFrames, Control::next, and NULL.


Member Function Documentation

void Program::addControlInCurrentFrame Control ctrl  ) 
 

Definition at line 838 of file program.cc.

References Frame::controls, frames, loadingFrame, and Control::next.

Referenced by CInputScript::ParseDoAction(), CInputScript::ParsePlaceObject(), CInputScript::ParsePlaceObject2(), CInputScript::ParseRemoveObject(), CInputScript::ParseRemoveObject2(), CInputScript::ParseSetBackgroundColor(), CInputScript::ParseStartSound(), and CInputScript::ParseStopSound().

void Program::advanceFrame  ) 
 

Definition at line 826 of file program.cc.

References currentFrame, MoviePlay, movieStatus, nbFrames, and nextFrame.

Referenced by doAction(), nestedMovie(), nextStepMovie(), and processMovie().

void Program::continueMovie  ) 
 

Definition at line 812 of file program.cc.

References MoviePlay, and movieStatus.

Referenced by FlashExec().

long Program::doAction GraphicDevice gd,
ActionRecord action,
SoundMixer
 

Definition at line 666 of file program.cc.

References ActionRecord::action, ActionGetURL, ActionGotoFrame, ActionGoToLabel, ActionNextFrame, ActionPlay, ActionPlaySound, ActionPrevFrame, ActionRefresh, ActionSetTarget, ActionStop, ActionStopSounds, ActionToggleQuality, ActionWaitForFrame, advanceFrame(), currentFrame, f, ActionRecord::frameIndex, ActionRecord::frameLabel, FlashMovie::getUrl, FlashMovie::getUrlClientData, GOTO, len, loadNewSwf(), movie, MoviePaused, MoviePlay, movieStatus, nbFrames, ActionRecord::next, nextFrame, NOTHING, pauseMovie(), printf, REFRESH, searchFrame(), ActionRecord::skipCount, ActionRecord::sound, SoundMixer::startSound(), SoundMixer::stopSounds(), ActionRecord::target, ActionRecord::url, and WAKEUP.

Referenced by Sprite::eventHandler(), handleEvent(), and runFrame().

long Program::getCurrentFrame  ) 
 

Definition at line 120 of file program.cc.

References currentFrame.

DisplayList * Program::getDisplayList  ) 
 

Definition at line 114 of file program.cc.

References dl.

Referenced by Sprite::eventHandler().

Frame * Program::getFrames  ) 
 

Definition at line 102 of file program.cc.

References frames.

long Program::getNbFrames  ) 
 

Definition at line 108 of file program.cc.

References nbFrames.

void Program::gotoFrame GraphicDevice gd,
long  f
 

Definition at line 134 of file program.cc.

References DisplayList::clearList(), dl, f, and runFrame().

Referenced by handleEvent(), runFrame(), and searchFrame().

long Program::handleEvent GraphicDevice ,
SoundMixer ,
FlashEvent
 

Definition at line 494 of file program.cc.

References button_newfocus(), button_nextfocus(), DisplayListEntry::character, computeActions(), FlashMovie::cur_focus, dl, doAction(), exploreButtons(), FeButtonPress, FeButtonRelease, FeKeyDown, FeKeyEnter, FeKeyLeft, FeKeyNext, FeKeyPress, FeKeyRelease, FeKeyRight, FeKeyUp, FeMouseMove, FRAC, GOTO, gotoFrame(), FlashEvent::key, FlashMovie::mouse_active, FlashMovie::mouse_x, FlashMovie::mouse_y, moveFocus(), movie, MoviePaused, MoviePlay, movieStatus, nbFrames, nextFrame, NULL, DisplayListEntry::owner, REFRESH, render, DisplayListEntry::renderState, runFrame(), FlashMovie::scheduledEvent, FlashMovie::scheduledTime, setFlashTimer(), stateDown, stateOver, stateUp, FlashEvent::type, DisplayList::updateBoundingBox(), DisplayList::updateButtons(), DisplayList::updateSprites(), WAKEUP, FlashEvent::x, and FlashEvent::y.

void Program::modifySettings long  flags  ) 
 

Definition at line 852 of file program.cc.

References settings.

Referenced by FlashSettings().

long Program::nestedMovie GraphicDevice ,
SoundMixer ,
Matrix ,
Cxform
 

Definition at line 255 of file program.cc.

References advanceFrame(), DisplayList::clearList(), currentFrame, dl, MoviePlay, movieStatus, nbFrames, pauseMovie(), and runFrame().

Referenced by DisplayList::updateSprites().

void Program::nextStepMovie  ) 
 

Definition at line 818 of file program.cc.

References advanceFrame(), MoviePaused, and movieStatus.

Referenced by FlashExec().

void Program::pauseMovie  ) 
 

Definition at line 805 of file program.cc.

References currentFrame, MoviePaused, movieStatus, and nextFrame.

Referenced by doAction(), FlashExec(), nestedMovie(), and processMovie().

long Program::processMovie GraphicDevice ,
SoundMixer
 

Definition at line 273 of file program.cc.

References advanceFrame(), DisplayList::clearList(), currentFrame, dl, MoviePlay, movieStatus, movieWait, nbFrames, nextFrame, pauseMovie(), PLAYER_LOOP, printf, render, runFrame(), settings, totalFrames, and DisplayList::updateSprites().

Referenced by FlashMovie::processMovie().

void Program::rewindMovie  ) 
 

Definition at line 798 of file program.cc.

References currentFrame, and nextFrame.

Referenced by FlashExec(), FlashParse(), CInputScript::ParseTags(), and Sprite::reset().

long Program::runFrame GraphicDevice ,
SoundMixer ,
long  f,
long  action = 1
 

Definition at line 147 of file program.cc.

References Control::actionRecords, DisplayList::bbox, FlashMovie::buttons_updated, Control::character, Control::clipDepth, Control::color, Frame::controls, ctrlBackgroundColor, ctrlDoAction, ctrlPlaceObject, ctrlPlaceObject2, ctrlRemoveObject, ctrlRemoveObject2, ctrlStartSound, ctrlStopSound, Control::cxform, Control::depth, dl, doAction(), Control::flags, frames, GOTO, gotoFrame(), Control::matrix, movie, MoviePaused, movieStatus, Control::name, name, nbFrames, Control::next, nextFrame, NOTHING, NULL, placeHasCharacter, placeHasColorXform, placeHasMatrix, placeHasName, DisplayList::placeObject(), printf, DisplayList::removeObject(), Character::reset(), SoundMixer::startSound(), SoundMixer::stopSounds(), Control::type, DisplayList::updateButtons(), Rect::xmax, Rect::xmin, Rect::ymax, and Rect::ymin.

Referenced by gotoFrame(), handleEvent(), nestedMovie(), and processMovie().

long Program::searchFrame GraphicDevice gd,
char *  ,
char * 
 

Definition at line 858 of file program.cc.

References DisplayListEntry::character, dl, f, frames, gotoFrame(), Character::isSprite(), DisplayList::list, nbFrames, DisplayListEntry::next, nextFrame, searchFrame(), and DisplayList::updateBoundingBox().

Referenced by doAction(), and searchFrame().

void Program::setCurrentFrame long   ) 
 

Definition at line 126 of file program.cc.

References currentFrame, and nextFrame.

void Program::setCurrentFrameLabel char *  label  ) 
 

Definition at line 792 of file program.cc.

References frames, Frame::label, and loadingFrame.

Referenced by CInputScript::ParseFrameLabel().

void Program::setGetUrlMethod void(*)(char *, char *, void *)  ,
void * 
 

void Program::validateLoadingFrame  ) 
 

Definition at line 94 of file program.cc.

References loadingFrame, movieWait, and nbFrames.

Referenced by CInputScript::ParseTags().


Member Data Documentation

long Program::currentFrame
 

Definition at line 129 of file program.h.

Referenced by advanceFrame(), doAction(), getCurrentFrame(), nestedMovie(), pauseMovie(), processMovie(), Program(), rewindMovie(), and setCurrentFrame().

Sound* Program::currentSound
 

Definition at line 135 of file program.h.

DisplayList* Program::dl
 

Definition at line 125 of file program.h.

Referenced by Sprite::execute(), exploreButtons1(), Sprite::getBoundingBox(), getDisplayList(), gotoFrame(), handleEvent(), nestedMovie(), processMovie(), Program(), FlashMovie::renderMovie(), runFrame(), searchFrame(), Sprite::Sprite(), DisplayList::updateSprites(), and ~Program().

Frame* Program::frames
 

Definition at line 127 of file program.h.

Referenced by addControlInCurrentFrame(), getFrames(), Program(), runFrame(), searchFrame(), setCurrentFrameLabel(), and ~Program().

long Program::loadingFrame
 

Definition at line 130 of file program.h.

Referenced by addControlInCurrentFrame(), Program(), setCurrentFrameLabel(), and validateLoadingFrame().

FlashMovie* Program::movie
 

Definition at line 137 of file program.h.

Referenced by doAction(), handleEvent(), CInputScript::ParseDefineSprite(), and runFrame().

MovieStatus Program::movieStatus
 

Definition at line 134 of file program.h.

Referenced by advanceFrame(), continueMovie(), doAction(), handleEvent(), nestedMovie(), nextStepMovie(), pauseMovie(), processMovie(), Program(), and runFrame().

int Program::movieWait
 

Definition at line 133 of file program.h.

Referenced by processMovie(), Program(), and validateLoadingFrame().

long Program::nbFrames
 

Definition at line 128 of file program.h.

Referenced by advanceFrame(), doAction(), FlashExec(), getNbFrames(), handleEvent(), nestedMovie(), processMovie(), FlashMovie::processMovie(), Program(), runFrame(), searchFrame(), validateLoadingFrame(), and ~Program().

long Program::nextFrame
 

Definition at line 132 of file program.h.

Referenced by advanceFrame(), doAction(), handleEvent(), pauseMovie(), processMovie(), Program(), rewindMovie(), runFrame(), searchFrame(), and setCurrentFrame().

long Program::render
 

Definition at line 138 of file program.h.

Referenced by handleEvent(), processMovie(), and FlashMovie::renderMovie().

long Program::settings
 

Definition at line 136 of file program.h.

Referenced by modifySettings(), processMovie(), and Program().

long Program::totalFrames
 

Definition at line 131 of file program.h.

Referenced by CInputScript::ParseData(), processMovie(), Program(), and Sprite::Sprite().


The documentation for this struct was generated from the following files:
Generated on Sat Nov 5 17:45:45 2005 for OPIE by  doxygen 1.4.2