BGC Tools
|
This defines a transition between two states with the required transition conditions for the transition to occur More...
Public Member Functions | |
Transition (State targetState, params TransitionCondition< TBoolEnum, TTriggerEnum >[] transitionConditions) | |
Construct abstract transtion to define path More... | |
void | SetStateDataRetrievers (ITransitionDataRetriever< TBoolEnum, TTriggerEnum > stateMachine) |
Add state machine data which is required for checking info More... | |
bool | ShouldTransition () |
Test whether or not this transition should occur More... | |
void | OnTransition () |
Right before a transition this function is called so the transition and clean anything it has done up. For example: deactivating any triggers it has used is required More... | |
Data Fields | |
readonly State | TargetState |
Get name of the state this transition goes to More... | |
Protected Attributes | |
ITransitionDataRetriever< TBoolEnum, TTriggerEnum > | stateMachine |
Private Attributes | |
readonly TransitionCondition< TBoolEnum, TTriggerEnum > [] | transitionConditions |
This defines a transition between two states with the required transition conditions for the transition to occur
TBoolEnum | : | Enum | |
TTriggerEnum | : | Enum |
Definition at line 9 of file Transition.cs.
|
inline |
Construct abstract transtion to define path
Definition at line 25 of file Transition.cs.
|
inline |
Right before a transition this function is called so the transition and clean anything it has done up. For example: deactivating any triggers it has used is required
Definition at line 88 of file Transition.cs.
Referenced by BGC.StateMachine.StateMachine< TBoolEnum, TTriggerEnum >.ExecuteTransitions().
|
inline |
Add state machine data which is required for checking info
Definition at line 51 of file Transition.cs.
Referenced by BGC.StateMachine.StateMachine< TBoolEnum, TTriggerEnum >.AddAnyStateTransition(), and BGC.StateMachine.StateMachine< TBoolEnum, TTriggerEnum >.AddTransition().
|
inline |
Test whether or not this transition should occur
Definition at line 67 of file Transition.cs.
|
protected |
Definition at line 15 of file Transition.cs.
readonly State BGC.StateMachine.Transition< TBoolEnum, TTriggerEnum >.TargetState |
Get name of the state this transition goes to
Definition at line 20 of file Transition.cs.
Referenced by BGC.StateMachine.StateMachine< TBoolEnum, TTriggerEnum >.ExecuteTransitions().
|
private |
Definition at line 13 of file Transition.cs.