C# Class WaveEngine.Components.GameActions.WaitGameAction

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

Public Methods

Method Description
WaitGameAction ( IGameAction parent, System.TimeSpan duration ) : System

Initializes a new instance of the WaitGameAction class.

WaitGameAction ( System.TimeSpan duration, Scene scene = null ) : System

Initializes a new instance of the WaitGameAction class.

Protected Methods

Method Description
PerformCancel ( ) : void

Perform cancel

PerformRun ( ) : void

Perform Run actions

PerformSkip ( ) : bool

Skip the action

Private Methods

Method Description
TimerCompleted ( ) : void

The timer has been fired

Method Details

PerformCancel() protected method

Perform cancel
protected PerformCancel ( ) : void
return void

PerformRun() protected method

Perform Run actions
protected PerformRun ( ) : void
return void

PerformSkip() protected method

Skip the action
protected PerformSkip ( ) : bool
return bool

WaitGameAction() public method

Initializes a new instance of the WaitGameAction class.
public WaitGameAction ( IGameAction parent, System.TimeSpan duration ) : System
parent IGameAction The parent action
duration System.TimeSpan The duration of the action
return System

WaitGameAction() public method

Initializes a new instance of the WaitGameAction class.
public WaitGameAction ( System.TimeSpan duration, Scene scene = null ) : System
duration System.TimeSpan The duration of the action
scene Scene The scene.
return System