BGC Tools
|
An or conjunction is a set of transitions conditions where they are tested together with the logical or operator. If one transition condition returns true, then this entire conjunction will also return true. More...
Public Member Functions | |
OrConjunction (params TransitionCondition< TBoolEnum, TTriggerEnum >[] conditions) | |
Construct an or conjuction which operates as a set of boolean results with an or between each. This function sets the conditions and does error checking for null values. More... | |
override void | OnTransition () |
On Transition, all conditions are notified of the transition. More... | |
override bool | ShouldTransition () |
Returns true as long as one state returns that a transition should happen 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 () |
Calls this function on every state to give them their required functionality. More... | |
Private Attributes | |
readonly TransitionCondition< TBoolEnum, TTriggerEnum > [] | conditions |
Set of required conditions for a transition to be called More... | |
Additional Inherited Members | |
Protected Attributes inherited from BGC.StateMachine.TransitionCondition< TBoolEnum, TTriggerEnum > | |
ITransitionDataRetriever< TBoolEnum, TTriggerEnum > | stateMachine |
An or conjunction is a set of transitions conditions where they are tested together with the logical or operator. If one transition condition returns true, then this entire conjunction will also return true.
TBoolEnum | : | Enum | |
TTriggerEnum | : | Enum |
Definition at line 11 of file OrConjunction.cs.
|
inline |
Construct an or conjuction which operates as a set of boolean results with an or between each. This function sets the conditions and does error checking for null values.
Definition at line 25 of file OrConjunction.cs.
|
inlinevirtual |
On Transition, all conditions are notified of the transition.
Implements BGC.StateMachine.TransitionCondition< TBoolEnum, TTriggerEnum >.
Definition at line 48 of file OrConjunction.cs.
|
inlinevirtual |
Returns true as long as one state returns that a transition should happen
Implements BGC.StateMachine.TransitionCondition< TBoolEnum, TTriggerEnum >.
Definition at line 64 of file OrConjunction.cs.
|
inlineprotectedvirtual |
Calls this function on every state to give them their required functionality.
Implements BGC.StateMachine.TransitionCondition< TBoolEnum, TTriggerEnum >.
Definition at line 83 of file OrConjunction.cs.
|
private |
Set of required conditions for a transition to be called
Definition at line 18 of file OrConjunction.cs.