C# Class WaveEngine.Components.GameActions.SingleAnimationGameAction

A game action to play a sound
Inheritance: GameAction
Afficher le fichier Open project: WaveEngine/Components

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
PerformCancel ( ) : void

Notifies the cancelled.

PerformRun ( ) : void

Perform Run actions

PerformSkip ( ) : bool

Skip the action

Private Methods

Méthode Description
OnAnimationCompleted ( object sender, EventArgs e ) : void

Handles the Completed event of the singleAnimation control.

Method Details

PerformCancel() protected méthode

Notifies the cancelled.
protected PerformCancel ( ) : void
Résultat void

PerformRun() protected méthode

Perform Run actions
protected PerformRun ( ) : void
Résultat void

PerformSkip() protected méthode

Skip the action
protected PerformSkip ( ) : bool
Résultat bool

SingleAnimationGameAction() public méthode

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.
Résultat System

SingleAnimationGameAction() public méthode

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.
Résultat System