ScummVM API documentation
Nancy::Action::PlaySecondaryMovie Class Reference
Inheritance diagram for Nancy::Action::PlaySecondaryMovie:
Nancy::Action::RenderActionRecord Nancy::Action::ActionRecord Nancy::RenderObject

Classes

struct  FlagAtFrame
 
struct  NextSequenceRef
 
struct  RandomSequence
 

Public Types

enum  RandomChainState { kRandomPlaying, kRandomPaused }
 
- Public Types inherited from Nancy::Action::ActionRecord
enum  ExecutionState { kBegin, kRun, kActionTrigger }
 
enum  ExecutionType { kOneShot = 1, kRepeating = 2 }
 

Public Member Functions

 PlaySecondaryMovie (bool isRandom=false)
 
void init () override
 
void onPause (bool pause) override
 
void readData (Common::SeekableReadStream &stream) override
 
void execute () override
 
bool getIsFinished () const
 
void stopRandom ()
 
void playRandomSequence ()
 
bool isViewportRelative () const override
 
bool isPersistentAcrossScenes () const override
 
- Public Member Functions inherited from Nancy::Action::RenderActionRecord
 RenderActionRecord (uint zOrder)
 
 RenderActionRecord (RenderActionRecord &&)=default
 
- Public Member Functions inherited from Nancy::Action::ActionRecord
virtual CursorManager::CursorType getHoverCursor () const
 
virtual bool cursorSetFromScript () const
 
virtual void handleInput (NancyInput &input)
 
virtual bool canHaveHotspot () const
 
- Public Member Functions inherited from Nancy::RenderObject
 RenderObject (uint16 zOrder)
 
 RenderObject (uint16 zOrder, Graphics::ManagedSurface &surface, const Common::Rect &srcBounds, const Common::Rect &destBounds)
 
 RenderObject (RenderObject &&)=default
 
virtual void registerGraphics ()
 
virtual void updateGraphics ()
 
void moveTo (const Common::Point &position)
 
void moveTo (const Common::Rect &bounds)
 
void setVisible (bool visible)
 
void setTransparent (bool isTransparent)
 
bool isVisible () const
 
bool needsRedraw () const
 
void setNeedsRedraw (bool needsRedraw)
 
void setHasMoved (bool hasMoved)
 
void grabPalette (byte *colors, uint paletteStart=0, uint paletteSize=256)
 
void setPalette (const Common::Path &paletteName, uint paletteStart=0, uint paletteSize=256)
 
void setPalette (const byte *colors, uint paletteStart=0, uint paletteSize=256)
 
bool hasMoved () const
 
void updatePreviousScreenPosition ()
 
Common::Rect getScreenPosition () const
 
Common::Rect getScreenPositionRaw () const
 
Common::Rect getPreviousScreenPosition () const
 
Common::Rect convertToLocal (const Common::Rect &screen) const
 
Common::Rect convertToScreen (const Common::Rect &rect) const
 
Common::Rect getBounds () const
 
uint16 getZOrder () const
 
void setZOrder (uint16 z)
 

Public Attributes

Common::Path _videoName
 
Common::Path _paletteName
 
Common::Path _bitmapOverlayName
 
uint16 _videoType = kVideoPlaytypeAVF
 
uint16 _videoFormat = kLargeVideoFormat
 
uint16 _videoSceneChange = kMovieNoSceneChange
 
byte _playerCursorAllowed = kPlayerCursorAllowed
 
byte _playDirection = kPlayMovieForward
 
uint16 _firstFrame = 0
 
uint16 _lastFrame = 0
 
Common::Array< FlagAtFrame_frameFlags
 
MultiEventFlagDescription _triggerFlags
 
FlagDescription _videoStartFlag
 
SoundDescription _sound
 
SceneChangeDescription _sceneChange
 
Common::Array< SecondaryVideoDescription_videoDescs
 
Common::ScopedPtr< Video::VideoDecoder_decoder
 
bool _isRandom = false
 
Common::String _startingSequenceName
 
uint16 _randomPlayerCursorAllowed = kPlayerCursorAllowed
 
Common::Array< RandomSequence_sequences
 
int _activeSequenceIndex = -1
 
RandomChainState _randomChainState = kRandomPlaying
 
uint32 _randomPauseEndTime = 0
 
bool _randomStopRequested = false
 
- Public Attributes inherited from Nancy::Action::ActionRecord
Common::String _description
 
byte _type
 
ExecutionType _execType
 
DependencyRecord _dependencies
 
bool _isActive
 
bool _isDone
 
bool _hasHotspot
 
Common::Rect _hotspot
 
ExecutionState _state
 
int16 _days
 
DependencyRecord_cursorDependency
 
- Public Attributes inherited from Nancy::RenderObject
Graphics::ManagedSurface _drawSurface
 

Static Public Attributes

static const byte kMovieSceneChange = 5
 
static const byte kMovieNoSceneChange = 6
 
static const byte kPlayerCursorAllowed = 1
 
static const byte kNoPlayerCursorAllowed = 2
 
static const byte kPlayMovieForward = 1
 
static const byte kPlayMovieReverse = 2
 

Protected Member Functions

Common::String getRecordTypeName () const override
 
void readRandomMovieData (Common::Serializer &ser, Common::SeekableReadStream &stream)
 
void readRandomSequence (Common::Serializer &ser, RandomSequence &seq)
 
void resetDecoder ()
 
bool activateRandomSequence (int index)
 
int rollNextSequence ()
 
- Protected Member Functions inherited from Nancy::Action::ActionRecord
void finishExecution ()
 

Protected Attributes

Graphics::ManagedSurface _fullFrame
 
int _curViewportFrame = -1
 
bool _isFinished = false
 
- Protected Attributes inherited from Nancy::RenderObject
bool _needsRedraw
 
bool _isVisible
 
bool _hasMoved
 
uint16 _z
 
Common::Rect _previousScreenPosition
 
Common::Rect _screenPosition
 

The documentation for this class was generated from the following file: