C# Class WaveEngine.Components.GameActions.GameActionSet

Represent a Set of Game Actions
Inheritance: IGameActionSet
Exibir arquivo Open project: WaveEngine/Components

Public Methods

Method Description
GameActionSet ( IEnumerable actions, Scene scene = null ) : System

Initializes a new instance of the GameActionSet class.

GameActionSet ( IGameAction parent, IEnumerable actions ) : System

Initializes a new instance of the GameActionSet class.

WaitAll ( ) : IGameAction

Return an action that will be completed when all actions has been completed.

WaitAny ( ) : IGameAction

Return an action that will be completed when any actions has been completed.

WaitCount ( int count ) : IGameAction

Return an action that will be completed when all actions has been completed.

WaitPredicate ( IGameAction[]>.Func waitingTaskPredicate ) : IGameAction

Waits the predicate.

Private Methods

Method Description
GetActionCount ( ) : int

Return action count

Method Details

GameActionSet() public method

Initializes a new instance of the GameActionSet class.
public GameActionSet ( IEnumerable actions, Scene scene = null ) : System
actions IEnumerable The action list.
scene Scene The associated scene.
return System

GameActionSet() public method

Initializes a new instance of the GameActionSet class.
public GameActionSet ( IGameAction parent, IEnumerable actions ) : System
parent IGameAction The parent action.
actions IEnumerable The action list.
return System

WaitAll() public method

Return an action that will be completed when all actions has been completed.
public WaitAll ( ) : IGameAction
return IGameAction

WaitAny() public method

Return an action that will be completed when any actions has been completed.
public WaitAny ( ) : IGameAction
return IGameAction

WaitCount() public method

Return an action that will be completed when all actions has been completed.
public WaitCount ( int count ) : IGameAction
count int The count limit
return IGameAction

WaitPredicate() public method

Waits the predicate.
public WaitPredicate ( IGameAction[]>.Func waitingTaskPredicate ) : IGameAction
waitingTaskPredicate IGameAction[]>.Func The waiting task predicate.
return IGameAction