C# Class WaveEngine.Components.GameActions.ActiveWaitConditionGameAction

A game action to wait an event for a time
Inheritance: GameAction, IUpdatableGameAction
Exibir arquivo Open project: WaveEngine/Components

Public Methods

Method Description
ActiveWaitConditionGameAction ( Func breakPredicate, Scene scene = null, int eventCount = 1 ) : System

Initializes a new instance of the ActiveWaitConditionGameAction class.

ActiveWaitConditionGameAction ( IGameAction parent, Func breakPredicate, int eventCount = 1 ) : System

Initializes a new instance of the ActiveWaitConditionGameAction class.

Update ( System.TimeSpan gameTime ) : void

Update the game action

Protected Methods

Method Description
PerformRun ( ) : void

Perform Run actions

PerformSkip ( ) : bool

Skip the action

Method Details

ActiveWaitConditionGameAction() public method

Initializes a new instance of the ActiveWaitConditionGameAction class.
public ActiveWaitConditionGameAction ( Func breakPredicate, Scene scene = null, int eventCount = 1 ) : System
breakPredicate Func The condition predicate
scene Scene The scene.
eventCount int The event count
return System

ActiveWaitConditionGameAction() public method

Initializes a new instance of the ActiveWaitConditionGameAction class.
public ActiveWaitConditionGameAction ( IGameAction parent, Func breakPredicate, int eventCount = 1 ) : System
parent IGameAction The parent action
breakPredicate Func The condition predicate
eventCount int The event count
return System

PerformRun() protected method

Perform Run actions
protected PerformRun ( ) : void
return void

PerformSkip() protected method

Skip the action
protected PerformSkip ( ) : bool
return bool

Update() public method

Update the game action
public Update ( System.TimeSpan gameTime ) : void
gameTime System.TimeSpan The current game time.
return void