C# Class WaveEngine.Components.GameActions.GameActionNode

A game action to continue with other action
Inheritance: GameAction
Exibir arquivo Open project: WaveEngine/Components

Protected Properties

Property Type Description
wrappedAction IGameAction

Public Methods

Method Description
GameActionNode ( Func actionFunction, Scene scene = null ) : System

Initializes a new instance of the GameActionNode class.

GameActionNode ( IGameAction parent, Func actionFunction ) : System

Initializes a new instance of the GameActionNode class.

GameActionNode ( IGameAction parent, IGameAction wrappedAction ) : System

Initializes a new instance of the GameActionNode class.

GameActionNode ( IGameAction wrappedAction, Scene scene = null ) : System

Initializes a new instance of the GameActionNode class.

ToString ( ) : string

Returns a System.String that represents this instance.

Protected Methods

Method Description
PerformCancel ( ) : void

Perform the game action cancelation

PerformRun ( ) : void

Perform Run actions

PerformSkip ( ) : bool

Skip the action

Private Methods

Method Description
WrappedActionCancelled ( IGameAction action ) : void

The wrapped action is cancelled

WrappedActionCompleted ( IGameAction action ) : void

The wrapped action is completed

Method Details

GameActionNode() public method

Initializes a new instance of the GameActionNode class.
public GameActionNode ( Func actionFunction, Scene scene = null ) : System
actionFunction Func The wrapped game action
scene Scene The scene.
return System

GameActionNode() public method

Initializes a new instance of the GameActionNode class.
public GameActionNode ( IGameAction parent, Func actionFunction ) : System
parent IGameAction The parent action.
actionFunction Func The wrapped game action
return System

GameActionNode() public method

Initializes a new instance of the GameActionNode class.
public GameActionNode ( IGameAction parent, IGameAction wrappedAction ) : System
parent IGameAction The parent action.
wrappedAction IGameAction The wrapped game action
return System

GameActionNode() public method

Initializes a new instance of the GameActionNode class.
public GameActionNode ( IGameAction wrappedAction, Scene scene = null ) : System
wrappedAction IGameAction The wrapped game action
scene Scene The scene.
return System

PerformCancel() protected method

Perform the game action cancelation
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

ToString() public method

Returns a System.String that represents this instance.
public ToString ( ) : string
return string

Property Details

wrappedAction protected_oe property

The wrapped Action
protected IGameAction wrappedAction
return IGameAction