Class Transition
A transition between states.
public class Transition
- Inheritance
-
Transition
- Inherited Members
Constructors
Transition(Func<bool>, Action, State)
Create a new transition.
public Transition(Func<bool> condition, Action actions, State targetState)
Parameters
condition
Func<bool>Condition for triggering this transition.
actions
ActionActions associated with this transition.
targetState
StateTarget state for this transition.
Properties
Actions
Actions associated with this transition.
public Action Actions { get; }
Property Value
TargetState
Target state for this transition.
public State TargetState { get; }
Property Value
Methods
IsTriggered()
Is this transition triggered?
public bool IsTriggered()
Returns
- bool
true
if transition is triggered,false
otherwise.