C# Class Descent.State.StateMachine

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

Public Methods

Method 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

Method Description
Invariant ( ) : void

Method Details

ChangeToNextState() public method

Go to the next state.
public ChangeToNextState ( ) : void
return void

IsOneMoreRecentThanOther() public method

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.
return bool

PlaceStates() public method

Inserts states right after the CurrentState.
public PlaceStates ( ) : void
return void

StateMachine() public method

public StateMachine ( State startStates ) : System.Collections.Generic
startStates State
return System.Collections.Generic