C# Class WaveEngine.Components.GameActions.GameActionFactory

Extension methods for GameAction class
Afficher le fichier Open project: WaveEngine/Components

Méthodes publiques

Méthode Description
AndPlayMusic ( this parent, MusicInfo musicInfo ) : IGameAction

And play a music action.

AndPlaySingleAnimation ( this parent, SingleAnimation singleAnimation, AnimationUI animationUI, DependencyProperty dependencyProperty ) : IGameAction

And play a single animation action.

AndPlaySound ( this parent, SoundInfo soundInfo, float volume = 1f, bool loop = false ) : IGameAction

And play a sound action.

AndPlayVideo ( this parent, System.VideoInfo videoInfo ) : IGameAction

And play a video action.

AndWaitCondition ( this parent, Func breakPredicate, int eventCount = 1 ) : IGameAction

Ands the wait condition.

AndWaitTap ( this parent, TouchGestures touchGestures ) : IGameAction

And wait a tap to the touch gesture.

AsSkippableGameAction ( this actionToSkip ) : IGameAction

Ases the skipable task.

ContinueWith ( this parent, Func nextActionGenerator ) : IGameAction

Continue with another action.

ContinueWith ( this parent, IGameAction nextAction ) : IGameAction

Continue with another action.

ContinueWith ( this parent ) : IGameActionSet

Continue with another action.

ContinueWith ( this parent, IEnumerable childTasks ) : IGameActionSet

Continue with another action.

ContinueWithAction ( this parent, System.Action action ) : IGameAction

Continue with another an action function

CreateDelayGameAction ( this scene, System.TimeSpan time ) : IGameAction

Creates a delay action.

CreateEmptyGameAction ( this scene ) : IGameAction

Creates an empty game action.

CreateGameAction ( this scene, Func actionGenerator ) : IGameAction

Creates a game action.

CreateGameAction ( this scene, IGameAction action ) : IGameAction

Creates a game action.

CreateGameActionFromAction ( this scene, System.Action action ) : IGameAction

Creates an empty game action.

CreateLoopGameActionUntil ( this scene, Func actionGenerator, Func stopCondition ) : IGameAction

Creates the repeat task until.

CreateParallelGameActions ( this scene ) : IGameActionSet

Create parallel actions.

CreateParallelGameActions ( this scene, IEnumerable actionGenerators ) : IGameActionSet

Create parallel actions.

CreatePlayMusicGameAction ( this scene, MusicInfo musicInfo ) : IGameAction

Creates a play music action.

CreatePlaySoundGameAction ( this scene, SoundInfo soundInfo, float volume = 1f, bool loop = false ) : IGameAction

Creates a play sound action.

CreatePlayVideoGameAction ( this scene, System.VideoInfo videoInfo ) : IGameAction

Creates a play video action.

CreateSingleAnimationGameAction ( this scene, SingleAnimation singleAnimation, AnimationUI animationUI, DependencyProperty dependencyProperty ) : IGameAction

Creates the single animation action.

CreateWaitConditionGameAction ( this scene, Func breakPredicate, int eventCount = 1 ) : IGameAction

Create a wait condition action.

CreateWaitGameAction ( this scene, System.TimeSpan timeSpan ) : IGameAction

Creates the wait action.

CreateWaitTapGameAction ( this scene, TouchGestures touchGestures ) : IGameAction

Creates the wait tap task.

Delay ( this parent, System.TimeSpan time ) : IGameAction

Add a delay action.

Method Details

AndPlayMusic() public static méthode

And play a music action.
public static AndPlayMusic ( this parent, MusicInfo musicInfo ) : IGameAction
parent this The parent.
musicInfo MusicInfo The music info to play
Résultat IGameAction

AndPlaySingleAnimation() public static méthode

And play a single animation action.
public static AndPlaySingleAnimation ( this parent, SingleAnimation singleAnimation, AnimationUI animationUI, DependencyProperty dependencyProperty ) : IGameAction
parent this The parent.
singleAnimation SingleAnimation The single animation.
animationUI AnimationUI The animation UI.
dependencyProperty DependencyProperty The dependency property.
Résultat IGameAction

AndPlaySound() public static méthode

And play a sound action.
public static AndPlaySound ( this parent, SoundInfo soundInfo, float volume = 1f, bool loop = false ) : IGameAction
parent this The parent.
soundInfo SoundInfo The sound info to play
volume float The sound volume
loop bool The sound loop is enabled
Résultat IGameAction

AndPlayVideo() public static méthode

And play a video action.
public static AndPlayVideo ( this parent, System.VideoInfo videoInfo ) : IGameAction
parent this The parent.
videoInfo System.VideoInfo The video info to play
Résultat IGameAction

AndWaitCondition() public static méthode

Ands the wait condition.
public static AndWaitCondition ( this parent, Func breakPredicate, int eventCount = 1 ) : IGameAction
parent this The parent.
breakPredicate Func The predicate.
eventCount int The event count.
Résultat IGameAction

AndWaitTap() public static méthode

And wait a tap to the touch gesture.
public static AndWaitTap ( this parent, TouchGestures touchGestures ) : IGameAction
parent this The parent.
touchGestures WaveEngine.Components.Gestures.TouchGestures The touch gestures.
Résultat IGameAction

AsSkippableGameAction() public static méthode

Ases the skipable task.
public static AsSkippableGameAction ( this actionToSkip ) : IGameAction
actionToSkip this The action to skip.
Résultat IGameAction

ContinueWith() public static méthode

Continue with another action.
It is not possible to continue with, aborted or finised task. Defer the run command to a posterior stage.
public static ContinueWith ( this parent, Func nextActionGenerator ) : IGameAction
parent this The parent action.
nextActionGenerator Func The next action generator.
Résultat IGameAction

ContinueWith() public static méthode

Continue with another action.
It is not possible to continue with, aborted or finised task. Defer the run command to a posterior stage.
public static ContinueWith ( this parent, IGameAction nextAction ) : IGameAction
parent this The parent action.
nextAction IGameAction The next action.
Résultat IGameAction

ContinueWith() public static méthode

Continue with another action.
It is not possible to continue with, aborted or finised task. Defer the run command to a posterior stage.
public static ContinueWith ( this parent ) : IGameActionSet
parent this The parent action.
Résultat IGameActionSet

ContinueWith() public static méthode

Continue with another action.
It is not possible to continue with, aborted or finised task. Defer the run command to a posterior stage.
public static ContinueWith ( this parent, IEnumerable childTasks ) : IGameActionSet
parent this The parent action.
childTasks IEnumerable The chhild tasks.
Résultat IGameActionSet

ContinueWithAction() public static méthode

Continue with another an action function
It is not possible to continue with, aborted or finised task. Defer the run command to a posterior stage.
public static ContinueWithAction ( this parent, System.Action action ) : IGameAction
parent this The parent action.
action System.Action The next action.
Résultat IGameAction

CreateDelayGameAction() public static méthode

Creates a delay action.
public static CreateDelayGameAction ( this scene, System.TimeSpan time ) : IGameAction
scene this The scene.
time System.TimeSpan The time.
Résultat IGameAction

CreateEmptyGameAction() public static méthode

Creates an empty game action.
public static CreateEmptyGameAction ( this scene ) : IGameAction
scene this The scene.
Résultat IGameAction

CreateGameAction() public static méthode

Creates a game action.
public static CreateGameAction ( this scene, Func actionGenerator ) : IGameAction
scene this The scene.
actionGenerator Func The action generator method.
Résultat IGameAction

CreateGameAction() public static méthode

Creates a game action.
public static CreateGameAction ( this scene, IGameAction action ) : IGameAction
scene this The scene.
action IGameAction The action.
Résultat IGameAction

CreateGameActionFromAction() public static méthode

Creates an empty game action.
public static CreateGameActionFromAction ( this scene, System.Action action ) : IGameAction
scene this The scene.
action System.Action simple code to be executed
Résultat IGameAction

CreateLoopGameActionUntil() public static méthode

Creates the repeat task until.
public static CreateLoopGameActionUntil ( this scene, Func actionGenerator, Func stopCondition ) : IGameAction
scene this The scene.
actionGenerator Func The action generator.
stopCondition Func The until predicate.
Résultat IGameAction

CreateParallelGameActions() public static méthode

Create parallel actions.
public static CreateParallelGameActions ( this scene ) : IGameActionSet
scene this The scene.
Résultat IGameActionSet

CreateParallelGameActions() public static méthode

Create parallel actions.
public static CreateParallelGameActions ( this scene, IEnumerable actionGenerators ) : IGameActionSet
scene this The scene.
actionGenerators IEnumerable The action generators.
Résultat IGameActionSet

CreatePlayMusicGameAction() public static méthode

Creates a play music action.
public static CreatePlayMusicGameAction ( this scene, MusicInfo musicInfo ) : IGameAction
scene this The scene.
musicInfo MusicInfo The music info to play
Résultat IGameAction

CreatePlaySoundGameAction() public static méthode

Creates a play sound action.
public static CreatePlaySoundGameAction ( this scene, SoundInfo soundInfo, float volume = 1f, bool loop = false ) : IGameAction
scene this The scene.
soundInfo SoundInfo The sound info to play
volume float The sound volume
loop bool The sound loop is enabled
Résultat IGameAction

CreatePlayVideoGameAction() public static méthode

Creates a play video action.
public static CreatePlayVideoGameAction ( this scene, System.VideoInfo videoInfo ) : IGameAction
scene this The scene.
videoInfo System.VideoInfo The video info to play
Résultat IGameAction

CreateSingleAnimationGameAction() public static méthode

Creates the single animation action.
public static CreateSingleAnimationGameAction ( this scene, SingleAnimation singleAnimation, AnimationUI animationUI, DependencyProperty dependencyProperty ) : IGameAction
scene this The scene.
singleAnimation SingleAnimation The single animation.
animationUI AnimationUI The animation UI.
dependencyProperty DependencyProperty The dependency property.
Résultat IGameAction

CreateWaitConditionGameAction() public static méthode

Create a wait condition action.
public static CreateWaitConditionGameAction ( this scene, Func breakPredicate, int eventCount = 1 ) : IGameAction
scene this The scene.
breakPredicate Func The predicate.
eventCount int The event count.
Résultat IGameAction

CreateWaitGameAction() public static méthode

Creates the wait action.
public static CreateWaitGameAction ( this scene, System.TimeSpan timeSpan ) : IGameAction
scene this The scene.
timeSpan System.TimeSpan The time span.
Résultat IGameAction

CreateWaitTapGameAction() public static méthode

Creates the wait tap task.
public static CreateWaitTapGameAction ( this scene, TouchGestures touchGestures ) : IGameAction
scene this The scene.
touchGestures WaveEngine.Components.Gestures.TouchGestures The touch gestures.
Résultat IGameAction

Delay() public static méthode

Add a delay action.
public static Delay ( this parent, System.TimeSpan time ) : IGameAction
parent this The parent.
time System.TimeSpan The time.
Résultat IGameAction