C# Class WaveEngine.Components.GameActions.PlayVideoGameAction

A game action that play a video
Inheritance: GameAction
Show file Open project: WaveEngine/Components

Public Methods

Method Description
PlayVideoGameAction ( IGameAction parent, System.VideoInfo videoInfo ) : System

Initializes a new instance of the PlayVideoGameAction class.

PlayVideoGameAction ( System.VideoInfo videoInfo, Scene scene = null ) : System

Initializes a new instance of the PlayVideoGameAction class.

Protected Methods

Method Description
PerformCancel ( ) : void

Perform cancelation event

PerformRun ( ) : void

Perform run action

PerformSkip ( ) : bool

Skip the action

Private Methods

Method Description
OnVideoCompleted ( object sender, EventArgs e ) : void

The video has been completed

Method Details

PerformCancel() protected method

Perform cancelation event
protected PerformCancel ( ) : void
return void

PerformRun() protected method

Perform run action
protected PerformRun ( ) : void
return void

PerformSkip() protected method

Skip the action
protected PerformSkip ( ) : bool
return bool

PlayVideoGameAction() public method

Initializes a new instance of the PlayVideoGameAction class.
public PlayVideoGameAction ( IGameAction parent, System.VideoInfo videoInfo ) : System
parent IGameAction The parent task.
videoInfo System.VideoInfo The video info to play
return System

PlayVideoGameAction() public method

Initializes a new instance of the PlayVideoGameAction class.
public PlayVideoGameAction ( System.VideoInfo videoInfo, Scene scene = null ) : System
videoInfo System.VideoInfo The video info to play
scene Scene The associated scene.
return System