Arbor: State Diagram Editor
2.2.0
|
Class that defines the behavior of the State. More...
Public Member Functions | |
virtual void | OnStateAwake () |
Called when [state enter first]. More... | |
virtual void | OnStateBegin () |
Called when [state enter]. More... | |
virtual void | OnStateEnd () |
Called when [state exit]. More... | |
virtual void | OnStateTrigger (string message) |
Called from SendTrigger. More... | |
bool | Transition (int nextStateID, bool force) |
State transition More... | |
bool | Transition (int stateID) |
State transition. More... | |
bool | Transition (State nextState, bool force) |
State transition More... | |
bool | Transition (State nextState) |
State transition. More... | |
bool | Transition (StateLink nextStateLink, bool force) |
State transition More... | |
bool | Transition (StateLink nextStateLink) |
State transition. More... | |
StateBehaviour | AddBehaviour (System.Type type) |
Adds the behaviour. More... | |
T | AddBehaviour< T > () |
Adds the behaviour. More... | |
StateBehaviour | GetBehaviour (System.Type type) |
Gets the behaviour. More... | |
T | GetBehaviour< T > () |
Gets the behaviour. More... | |
StateBehaviour[] | GetBehaviours (System.Type type) |
Gets the behaviours. More... | |
T[] | GetBehaviours< T > () |
Gets the behaviours. More... | |
void | Destroy () |
Destroys this instance. More... | |
Public Attributes | |
bool | expanded = true |
Properties | |
ArborFSMInternal | stateMachine [get] |
Gets the state machine. More... | |
State | state [get] |
Get the State. More... | |
int | stateID [get] |
Gets the state identifier. More... | |
bool | behaviourEnabled [get, set] |
Gets or sets a value indicating whether [behaviour enabled]. More... | |
Class that defines the behavior of the State.
Inherited and to use.
StateBehaviour AddBehaviour | ( | System.Type | type | ) |
T AddBehaviour< T > | ( | ) |
Adds the behaviour.
T | Type of add StateBehaviour |
T | : | StateBehaviour |
void Destroy | ( | ) |
Destroys this instance.
StateBehaviour GetBehaviour | ( | System.Type | type | ) |
Gets the behaviour.
type | Type of you want to get StateBehaviour. |
T GetBehaviour< T > | ( | ) |
Gets the behaviour.
T | Type of you want to get StateBehaviour. |
T | : | StateBehaviour |
StateBehaviour [] GetBehaviours | ( | System.Type | type | ) |
Gets the behaviours.
type | Type of you want to get StateBehaviour. |
T [] GetBehaviours< T > | ( | ) |
Gets the behaviours.
T | Type of you want to get StateBehaviour. |
T | : | StateBehaviour |
|
virtual |
Called when [state enter first].
|
virtual |
Called when [state enter].
|
virtual |
Called when [state exit].
|
virtual |
Called from SendTrigger.
message | Message |
bool Transition | ( | int | nextStateID, |
bool | force | ||
) |
bool Transition | ( | int | stateID | ) |
bool Transition | ( | State | nextState, |
bool | force | ||
) |
State transition
nextState | Destination state. |
force | Whether or not to transition immediately. If false I will transition to the end of the current frame (when LateUpdate). |
bool Transition | ( | State | nextState | ) |
State transition.
Timing to actually transition current frame last (when LateUpdate).
nextState | Destination state. |
bool Transition | ( | StateLink | nextStateLink, |
bool | force | ||
) |
State transition
nextStateLink | The destination of transition. |
force | Whether or not to transition immediately. If false I will transition to the end of the current frame (when LateUpdate). |
bool Transition | ( | StateLink | nextStateLink | ) |
State transition.
Timing to actually transition current frame last (when LateUpdate).
nextStateLink | The destination of transition. |
bool expanded = true |
|
getset |
Gets or sets a value indicating whether [behaviour enabled].
true
if [behaviour enabled]; otherwise, false
.
|
get |
Gets the state identifier.
|
get |
Gets the state machine.