C# Class Descent.State.StateMachine

The handler of all states. Knows about the current state and what to do next.
Afficher le fichier Open project: nezbo/Descent Class Usage Examples

Méthodes publiques

Méthode Description
ChangeToNextState ( ) : void

Go to the next state.

IsOneMoreRecentThanOther ( State one, State other ) : bool

Performs backwards search beginning at the current state, searching for two different States.

PlaceStates ( ) : void

Inserts states right after the CurrentState.

StateMachine ( State startStates ) : System.Collections.Generic

Private Methods

Méthode Description
Invariant ( ) : void

Method Details

ChangeToNextState() public méthode

Go to the next state.
public ChangeToNextState ( ) : void
Résultat void

IsOneMoreRecentThanOther() public méthode

Performs backwards search beginning at the current state, searching for two different States.
public IsOneMoreRecentThanOther ( State one, State other ) : bool
one State The first state to search for.
other State The second state to search for.
Résultat bool

PlaceStates() public méthode

Inserts states right after the CurrentState.
public PlaceStates ( ) : void
Résultat void

StateMachine() public méthode

public StateMachine ( State startStates ) : System.Collections.Generic
startStates State
Résultat System.Collections.Generic