C# Class WaveEngine.Components.GameActions.PlayMusicGameAction

A game action that play a music
Inheritance: GameAction
Exibir arquivo Open project: WaveEngine/Components

Public Methods

Method Description
PlayMusicGameAction ( IGameAction parent, MusicInfo musicInfo ) : System

Initializes a new instance of the PlayMusicGameAction class.

PlayMusicGameAction ( MusicInfo musicInfo, Scene scene = null ) : System

Initializes a new instance of the PlayMusicGameAction class.

Protected Methods

Method Description
PerformCancel ( ) : void

Perform cancelation event

PerformRun ( ) : void

Perform run action

PerformSkip ( ) : bool

Skip the action

Private Methods

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

The music 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

PlayMusicGameAction() public method

Initializes a new instance of the PlayMusicGameAction class.
public PlayMusicGameAction ( IGameAction parent, MusicInfo musicInfo ) : System
parent IGameAction The parent task.
musicInfo MusicInfo The music info to play
return System

PlayMusicGameAction() public method

Initializes a new instance of the PlayMusicGameAction class.
public PlayMusicGameAction ( MusicInfo musicInfo, Scene scene = null ) : System
musicInfo MusicInfo The music info to play
scene Scene The associated scene.
return System