BGC Tools
|
Defines a class that must be implemented which is for defining when transitions should occur. It also allows for work to be done when a transition cocurs More...
Public Member Functions | |
void | SetStateMachineFunctions (ITransitionDataRetriever< TBoolEnum, TTriggerEnum > stateMachine) |
Sets the required functions for the transition that it has received from the state machine. More... | |
abstract void | OnTransition () |
Called before the transition for anything useful to be done such as consumeing triggers More... | |
abstract bool | ShouldTransition () |
Returns whether or not the condition has been met and a transition should occur More... | |
Protected Member Functions | |
abstract 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... | |
Protected Attributes | |
ITransitionDataRetriever< TBoolEnum, TTriggerEnum > | stateMachine |
Defines a class that must be implemented which is for defining when transitions should occur. It also allows for work to be done when a transition cocurs
TBoolEnum | : | Enum | |
TTriggerEnum | : | Enum |
Definition at line 12 of file TransitionCondition.cs.
|
pure virtual |
Called before the transition for anything useful to be done such as consumeing triggers
Implemented in BGC.StateMachine.OrConjunction< TBoolEnum, TTriggerEnum >, BGC.StateMachine.BoolCondition< TBoolEnum, TTriggerEnum >, and BGC.StateMachine.TriggerCondition< TBoolEnum, TTriggerEnum >.
|
inline |
Sets the required functions for the transition that it has received from the state machine.
Definition at line 22 of file TransitionCondition.cs.
|
pure virtual |
Returns whether or not the condition has been met and a transition should occur
Implemented in BGC.StateMachine.OrConjunction< TBoolEnum, TTriggerEnum >, BGC.StateMachine.BoolCondition< TBoolEnum, TTriggerEnum >, and BGC.StateMachine.TriggerCondition< TBoolEnum, TTriggerEnum >.
|
protectedpure virtual |
A transition receives information from the state machine on construction, however, the transition condition will send the functions to all it contains
Implemented in BGC.StateMachine.OrConjunction< TBoolEnum, TTriggerEnum >, BGC.StateMachine.BoolCondition< TBoolEnum, TTriggerEnum >, and BGC.StateMachine.TriggerCondition< TBoolEnum, TTriggerEnum >.
|
protected |
Definition at line 16 of file TransitionCondition.cs.