Class State
A FSM state.
public class State
- Inheritance
-
State
- Inherited Members
Constructors
State(string, Action, Action, Action)
Create a new state.
public State(string name, Action entryActions, Action stateActions, Action exitActions)
Parameters
name
stringName of the FSM state.
entryActions
ActionActions to perform when entering this state.
stateActions
ActionActions to perform while in this state.
exitActions
ActionActions to perform when exiting this state.
Properties
EntryActions
Actions to perform when entering this state.
public Action EntryActions { get; }
Property Value
ExitActions
Actions to perform when exiting this state.
public Action ExitActions { get; }
Property Value
Name
Name of the FSM state.
public string Name { get; }
Property Value
StateActions
Actions to perform while in this state.
public Action StateActions { get; }
Property Value
Transitions
Public property exposing the transitions associated with this state.
public IEnumerable<Transition> Transitions { get; }
Property Value
Methods
AddTransition(Transition)
Add a transition from this state to another state
public void AddTransition(Transition transition)
Parameters
transition
TransitionTransition to another state.