C# Class WaveEngine.Components.GameActions.SingleAnimationGameAction

A game action to play a sound
Inheritance: GameAction
Show file Open project: WaveEngine/Components

Public Methods

Method Description
SingleAnimationGameAction ( IGameAction parent, SingleAnimation singleAnimation, AnimationUI animation, DependencyProperty dependencyProperty ) : System

Initializes a new instance of the SingleAnimationGameAction class.

SingleAnimationGameAction ( SingleAnimation singleAnimation, AnimationUI animation, DependencyProperty dependencyProperty, Scene scene = null ) : System

Initializes a new instance of the SingleAnimationGameAction class.

Protected Methods

Method Description
PerformCancel ( ) : void

Notifies the cancelled.

PerformRun ( ) : void

Perform Run actions

PerformSkip ( ) : bool

Skip the action

Private Methods

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

Handles the Completed event of the singleAnimation control.

Method Details

PerformCancel() protected method

Notifies the cancelled.
protected PerformCancel ( ) : void
return void

PerformRun() protected method

Perform Run actions
protected PerformRun ( ) : void
return void

PerformSkip() protected method

Skip the action
protected PerformSkip ( ) : bool
return bool

SingleAnimationGameAction() public method

Initializes a new instance of the SingleAnimationGameAction class.
public SingleAnimationGameAction ( IGameAction parent, SingleAnimation singleAnimation, AnimationUI animation, DependencyProperty dependencyProperty ) : System
parent IGameAction The parent task.
singleAnimation SingleAnimation The single animation.
animation AnimationUI The AnimationUI component.
dependencyProperty DependencyProperty The dependency property to animate.
return System

SingleAnimationGameAction() public method

Initializes a new instance of the SingleAnimationGameAction class.
public SingleAnimationGameAction ( SingleAnimation singleAnimation, AnimationUI animation, DependencyProperty dependencyProperty, Scene scene = null ) : System
singleAnimation SingleAnimation The single animation.
animation AnimationUI The AnimationUI component.
dependencyProperty DependencyProperty The dependency property to animate.
scene Scene The associated scene.
return System