C# Class WaveEngine.Components.GameActions.GameActionFactory

Extension methods for GameAction class
Show file Open project: WaveEngine/Components

Public Methods

Method 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 method

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

AndPlaySingleAnimation() public static method

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.
return IGameAction

AndPlaySound() public static method

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
return IGameAction

AndPlayVideo() public static method

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
return IGameAction

AndWaitCondition() public static method

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.
return IGameAction

AndWaitTap() public static method

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.
return IGameAction

AsSkippableGameAction() public static method

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

ContinueWith() public static method

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.
return IGameAction

ContinueWith() public static method

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.
return IGameAction

ContinueWith() public static method

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.
return IGameActionSet

ContinueWith() public static method

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.
return IGameActionSet

ContinueWithAction() public static method

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.
return IGameAction

CreateDelayGameAction() public static method

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

CreateEmptyGameAction() public static method

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

CreateGameAction() public static method

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

CreateGameAction() public static method

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

CreateGameActionFromAction() public static method

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
return IGameAction

CreateLoopGameActionUntil() public static method

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.
return IGameAction

CreateParallelGameActions() public static method

Create parallel actions.
public static CreateParallelGameActions ( this scene ) : IGameActionSet
scene this The scene.
return IGameActionSet

CreateParallelGameActions() public static method

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

CreatePlayMusicGameAction() public static method

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

CreatePlaySoundGameAction() public static method

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
return IGameAction

CreatePlayVideoGameAction() public static method

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
return IGameAction

CreateSingleAnimationGameAction() public static method

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.
return IGameAction

CreateWaitConditionGameAction() public static method

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.
return IGameAction

CreateWaitGameAction() public static method

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

CreateWaitTapGameAction() public static method

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.
return IGameAction

Delay() public static method

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