Navigation
API > API/Plugins > API/Plugins/StateTreeModule
References
| Module | StateTreeModule |
| Header | /Engine/Plugins/Runtime/StateTree/Source/StateTreeModule/Public/StateTreeExecutionTypes.h |
| Include | #include "StateTreeExecutionTypes.h" |
Syntax
USTRUCT (BlueprintType )
struct FStateTreeActiveStates
Remarks
Describes an array of active states in a State Tree.
Variables
| Type | Name | Description | |
|---|---|---|---|
| uint8 | NumStates | ||
| FStateTreeStateHandle[MaxStates] | States |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FStateTreeActiveStates
(
const FStateTreeStateHandle StateHandle |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FStateTreeStateHandle * | begin () |
DO NOT USE DIRECTLY STL-like iterators to enable range-based for loop support. | |
| const FStateTreeStateHandle * | begin () |
||
| bool | Contains
(
const FStateTreeStateHandle StateHandle, |
Returns true of the array contains specified state within MaxNumStatesToCheck states. | |
| bool | Contains
(
const FStateTreeStateHandle StateHandle |
Returns true of the array contains specified state. | |
| const FStateTreeStateHandle * | end () |
||
| FStateTreeStateHandle * | end () |
||
| FStateTreeStateHandle | GetStateSafe
(
const int32 Index |
Returns a specified state in the array, or FStateTreeStateHandle::Invalid if Index is out of array bounds. | |
| int32 | IndexOfReverse
(
const FStateTreeStateHandle StateHandle |
Returns index of a state, searching in reverse order. | |
| bool | IsEmpty () |
Returns true if the array is empty. | |
| bool | IsValidIndex
(
const int32 Index |
Returns true if the index is within array bounds. | |
| FStateTreeStateHandle | Last () |
Returns last state in the array, or invalid state if the array is empty. | |
| int32 | Num () |
Returns number of states in the array. | |
| FStateTreeStateHandle | Pop () |
Pops a state from the back of the array and returns the popped value, or invalid handle if the array was empty. | |
| bool | Push
(
const FStateTreeStateHandle StateHandle |
Pushes new state at the back of the array and returns true if there was enough space. | |
| bool | PushFront
(
const FStateTreeStateHandle StateHandle |
Pushes new state at the front of the array and returns true if there was enough space. | |
| void | Reset () |
Resets the active state array to empty. | |
| void | Sets the number of states, new states are set to invalid state. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FStateTreeStateHandle & | operator[]
(
const int32 Index |
Returns mutable reference to a specified state in the array. | |
| const FStateTreeStateHandle & | operator[]
(
const int32 Index |
Returns a specified state in the array. |
Constants
| Name | Description |
|---|---|
| MaxStates |