C# Class WaveEngine.Components.GameActions.GameAction

Represent a Game Action to perform something
Inheritance: SerializableObject, IGameAction
Afficher le fichier Open project: WaveEngine/Components

Méthodes publiques

Свойство Type Description
IsSkippable bool

Private Properties

Свойство Type Description
OnParentComplete void

Méthodes publiques

Méthode Description
Cancel ( ) : void

Cancels this instance.

Run ( ) : void

Runs this instance.

ToString ( ) : string

Returns a System.String that represents this instance.

TrySkip ( ) : bool

Skips this instance.

Méthodes protégées

Méthode Description
GameAction ( IGameAction parent, string taskName ) : System

Initializes a new instance of the GameAction class.

GameAction ( string name, Scene scene = null ) : System

Initializes a new instance of the GameAction class.

PerformCancel ( ) : void

Notifies the cancelled.

PerformCompleted ( ) : void

Notifies the completed.

PerformRun ( ) : void

Ons the run.

PerformSkip ( ) : bool

Notifies the skip.

Private Methods

Méthode Description
OnParentComplete ( IGameAction parent ) : void

Parent action is completed

Method Details

Cancel() public méthode

Cancels this instance.
public Cancel ( ) : void
Résultat void

GameAction() protected méthode

Initializes a new instance of the GameAction class.
parent task cannot be null. if is a root task, use the other constructor
protected GameAction ( IGameAction parent, string taskName ) : System
parent IGameAction The parent.
taskName string Name of the task.
Résultat System

GameAction() protected méthode

Initializes a new instance of the GameAction class.
protected GameAction ( string name, Scene scene = null ) : System
name string Name of the game action.
scene Scene The scene
Résultat System

PerformCancel() protected méthode

Notifies the cancelled.
protected PerformCancel ( ) : void
Résultat void

PerformCompleted() protected méthode

Notifies the completed.
protected PerformCompleted ( ) : void
Résultat void

PerformRun() protected abstract méthode

Ons the run.
protected abstract PerformRun ( ) : void
Résultat void

PerformSkip() protected méthode

Notifies the skip.
protected PerformSkip ( ) : bool
Résultat bool

Run() public méthode

Runs this instance.
When the action state is not correct
public Run ( ) : void
Résultat void

ToString() public méthode

Returns a System.String that represents this instance.
public ToString ( ) : string
Résultat string

TrySkip() public méthode

Skips this instance.
When the action state is not correct
public TrySkip ( ) : bool
Résultat bool

Property Details

IsSkippable public_oe property

The skippable
public bool IsSkippable
Résultat bool