BGC Tools
|
A trigger condition, similar to the bool condition, will transition while a trigger is active. Once consumed, it will not transition. On a transition, it will consume the trigger it is associated with. More...
Public Member Functions | |
TriggerCondition (TTriggerEnum key) | |
Construct a trigger condition with the key that will be checked in the triggers dictionary. More... | |
override void | OnTransition () |
On transition, a trigger will always be consumed More... | |
override bool | ShouldTransition () |
If the required trigger has been activated this will return true until it has been consumed More... | |
Public Member Functions inherited from BGC.StateMachine.TransitionCondition< TBoolEnum, TTriggerEnum > | |
void | SetStateMachineFunctions (ITransitionDataRetriever< TBoolEnum, TTriggerEnum > stateMachine) |
Sets the required functions for the transition that it has received from the state machine. More... | |
Protected Member Functions | |
override void | StateMachineFunctionsSet () |
A transition receives information from the state machine on construction, however, the transition condition will send the functions to all it contains More... | |
Private Attributes | |
readonly TTriggerEnum | key |
Key to check state data triggers More... | |
Additional Inherited Members | |
Protected Attributes inherited from BGC.StateMachine.TransitionCondition< TBoolEnum, TTriggerEnum > | |
ITransitionDataRetriever< TBoolEnum, TTriggerEnum > | stateMachine |
A trigger condition, similar to the bool condition, will transition while a trigger is active. Once consumed, it will not transition. On a transition, it will consume the trigger it is associated with.
TBoolEnum | : | Enum | |
TTriggerEnum | : | Enum |
Definition at line 10 of file TriggerCondition.cs.
|
inline |
Construct a trigger condition with the key that will be checked in the triggers dictionary.
Definition at line 24 of file TriggerCondition.cs.
|
virtual |
On transition, a trigger will always be consumed
Implements BGC.StateMachine.TransitionCondition< TBoolEnum, TTriggerEnum >.
|
virtual |
If the required trigger has been activated this will return true until it has been consumed
Implements BGC.StateMachine.TransitionCondition< TBoolEnum, TTriggerEnum >.
|
inlineprotectedvirtual |
A transition receives information from the state machine on construction, however, the transition condition will send the functions to all it contains
Implements BGC.StateMachine.TransitionCondition< TBoolEnum, TTriggerEnum >.
Definition at line 40 of file TriggerCondition.cs.
|
private |
Key to check state data triggers
Definition at line 18 of file TriggerCondition.cs.