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
namestringName of the FSM state.
entryActionsActionActions to perform when entering this state.
stateActionsActionActions to perform while in this state.
exitActionsActionActions 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
transitionTransitionTransition to another state.