C# Класс Descent.State.StateMachine

The handler of all states. Knows about the current state and what to do next.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
Invariant ( ) : void

Описание методов

ChangeToNextState() публичный Метод

Go to the next state.
public ChangeToNextState ( ) : void
Результат void

IsOneMoreRecentThanOther() публичный Метод

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.
Результат bool

PlaceStates() публичный Метод

Inserts states right after the CurrentState.
public PlaceStates ( ) : void
Результат void

StateMachine() публичный Метод

public StateMachine ( State startStates ) : System.Collections.Generic
startStates State
Результат System.Collections.Generic