class
StateTree
- Module
- AINavigation
- Header
#include "AINavigation/StateTree.h"- Namespace
Mowo
Constructors
| Signature | Name | Description |
|---|---|---|
explicit StateTree(std::shared_ptr<const StateTreeAsset> asset) | StateTree | |
StateTree(const StateTree&) = delete | StateTree |
Public functions
| Returns | Name | Description |
|---|---|---|
StateTree& | operator= | |
bool | Start | |
EStateTreeRunStatus | Tick | |
void | Stop | |
void | SendEvent | Queued for the NEXT tick's OnEvent transitions, then dropped. |
EStateTreeRunStatus | GetStatus | |
std::vector<std::string> | GetActiveStateNames | |
std::string | GetActiveLeafName | |
bool | IsStateActive | |
int32_t | GetTransitionCount | Transitions applied since Start — a cheap signal for tests and the editor's debug view. |
bool | ConditionsPass |
Function details
StateTree
C++
explicit StateTree(std::shared_ptr<const StateTreeAsset> asset)StateTree
C++
StateTree(const StateTree&) = deleteoperator=
C++
StateTree& operator=(const StateTree&) = deleteStart
C++
bool Start(const FStateTreeTickContext& ctx)Tick
C++
EStateTreeRunStatus Tick(const FStateTreeTickContext& ctx)Stop
C++
void Stop(const FStateTreeTickContext& ctx)SendEvent
C++
void SendEvent(const std::string& name)Queued for the NEXT tick's OnEvent transitions, then dropped.
GetStatus
C++
EStateTreeRunStatus GetStatus() constGetActiveStateNames
C++
std::vector<std::string> GetActiveStateNames() constGetActiveLeafName
C++
std::string GetActiveLeafName() constIsStateActive
C++
bool IsStateActive(const std::string& name) constGetTransitionCount
C++
int32_t GetTransitionCount() constTransitions applied since Start — a cheap signal for tests and the editor's debug view.
ConditionsPass
C++
static bool ConditionsPass(const std::vector<FStateTreeCondition>& conditions, const Blackboard* blackboard)Generated from AINavigation/StateTree.h via ainavigation.json · Oct 27, 2026Version 1.0.0