BGC Tools
|
Public Member Functions | |
CoordinatingState () | |
Create a coordinating state with the default name More... | |
CoordinatingState (string name) | |
Create a coordinate state with a custom name rather than the default More... | |
void | SetStateMachineFunctions (IStateDataBool< TBoolEnum > booleans, IStateTrigger< TTriggerEnum > triggers) |
Receive state machine related functions that give states required behaviour More... | |
Public Member Functions inherited from BGC.StateMachine.State | |
State () | |
Create a state with the default name More... | |
State (string name) | |
Create a state with a custom name rather than the default More... | |
void | OnEnter () |
Called when the state is entered More... | |
void | OnExit () |
Called when the state is exited, before the next state is entered More... | |
virtual void | Update () |
This can be called every frame or whenever for complex states that have behavior on a frame by X basis. More... | |
void | SetVerbose (bool isVerbose) |
Set whether the state machine is verbose or not More... | |
Protected Member Functions | |
void | ActivateTrigger (TTriggerEnum key) |
Activate a trigger in the state machine this state is a part of More... | |
void | SetBool (TBoolEnum key, bool val) |
Set a bool in the state machine this state is a part of More... | |
bool | GetBool (TBoolEnum key) |
Get a bool from the state machine this state is a part of More... | |
Protected Member Functions inherited from BGC.StateMachine.State | |
abstract void | OnStateEnter () |
Called when the state is entered More... | |
virtual void | OnStateExit () |
Called when the state is exited before the next state is entered More... | |
Private Attributes | |
IStateTrigger< TTriggerEnum > | stateTriggers |
IStateDataBool< TBoolEnum > | stateBooleans |
Additional Inherited Members | |
Protected Attributes inherited from BGC.StateMachine.State | |
virtual string | DefaultName => "State" |
Properties inherited from BGC.StateMachine.State | |
string | Name [get, private set] |
Name of the state. This will either be user defined or the default state name depending on the constructor used More... | |
TBoolEnum | : | Enum | |
TTriggerEnum | : | Enum |
Definition at line 5 of file CoordinatingState.cs.
|
inline |
Create a coordinating state with the default name
Definition at line 15 of file CoordinatingState.cs.
|
inline |
Create a coordinate state with a custom name rather than the default
Definition at line 22 of file CoordinatingState.cs.
|
protected |
Activate a trigger in the state machine this state is a part of
key |
|
protected |
Get a bool from the state machine this state is a part of
key |
|
protected |
Set a bool in the state machine this state is a part of
key | |
val |
|
inline |
Receive state machine related functions that give states required behaviour
Definition at line 29 of file CoordinatingState.cs.
References BGC.StateMachine.IStateTrigger< TTriggerEnum >.ActivateTrigger(), BGC.StateMachine.IStateDataBool< TBoolEnum >.GetBool(), and BGC.StateMachine.IStateDataBool< TBoolEnum >.SetBool().
Referenced by BGC.StateMachine.StateMachine< TBoolEnum, TTriggerEnum >.AddState().
|
private |
Definition at line 10 of file CoordinatingState.cs.
|
private |
Definition at line 9 of file CoordinatingState.cs.