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  InteractiveEntry
 
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 skip ()
 
void stopRandom ()
 
void playRandomSequence ()
 
bool isViewportRelative () const override
 
bool survivesSceneChange (bool nextSceneIsNoArt) const override
 
void handleInput (NancyInput &input) override
 
CursorManager::CursorType getHoverCursor () const override
 
bool cursorSetFromScript () const override
 
Common::String getRecordExtraInfo () 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 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
 
byte _videoPlaytype = kVideoPlaytypeAuto
 
uint16 _videoFormat = kLargeVideoFormat
 
uint16 _videoSceneChange = kMovieNoSceneChange
 
byte _playerCursorAllowed = kPlayerCursorAllowed
 
byte _playDirection = kPlayMovieForward
 
uint16 _firstFrame = 0
 
uint16 _lastFrame = 0
 
uint16 _hideOnFinish = 0
 
uint16 _playStyle = 1
 
Common::Path _interactiveName
 
bool _interactiveFlag = false
 
Common::Array< InteractiveEntry_interactiveEntries
 
Common::Array< FlagAtFrame_frameFlags
 
MultiEventFlagDescription _triggerFlags
 
FlagDescription _videoStartFlag
 
SoundDescription _sound
 
SceneChangeDescription _sceneChange
 
Common::Array< SecondaryVideoDescription_videoDescs
 
MoviePlayer _decoder
 
bool _isRandom = false
 
Common::String _startingSequenceName
 
uint16 _randomPlayerCursorAllowed = kPlayerCursorAllowed
 
Common::Array< RandomSequence_sequences
 
RandomSequence _secondaryMovie
 
uint16 _talkSceneID = kNoScene
 
uint16 _talkCursorType = 0
 
int _activeSequenceIndex = -1
 
RandomChainState _randomChainState = kRandomPlaying
 
uint32 _randomPauseEndTime = 0
 
bool _randomStopRequested = false
 
bool _isHovered = false
 
bool _playingSecondary = false
 
bool _secondaryRewinding = false
 
int _rewindFrame = 0
 
uint32 _rewindLastFrameTime = 0
 
uint32 _rewindFrameDelay = 66
 
- 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 readRandomMovieDataNancy14 (Common::Serializer &ser, Common::SeekableReadStream &stream)
 
void readRandomSequence (Common::Serializer &ser, RandomSequence &seq)
 
void readSecondaryRandomMovie (Common::Serializer &ser, RandomSequence &seq)
 
void applyStartingRandomSequence ()
 
void readDataNancy14 (Common::Serializer &ser, Common::SeekableReadStream &stream)
 
bool activateRandomSequence (int index)
 
bool activateSecondaryMovie ()
 
void beginSecondaryRewind ()
 
const Graphics::SurfaceupdateSecondaryRewind ()
 
bool isTalkable () const
 
int rollNextSequence ()
 
int beginRandomPause (const RandomSequence &seq)
 
int lookupSequence (const Common::Path &name) const
 
void resolveSentinelFrames ()
 
- 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: