class
BehaviorTree
Owns a root node + drives it. Non-copyable (owns a unique_ptr).
- Module
- AINavigation
- Header
#include "AINavigation/BehaviorTree.h"- Namespace
Mowo
Constructors
| Signature | Name | Description |
|---|---|---|
explicit BehaviorTree(std::unique_ptr<BTNode> root) | BehaviorTree | |
BehaviorTree(const BehaviorTree&) = delete | BehaviorTree |
Public functions
| Returns | Name | Description |
|---|---|---|
BehaviorTree& | operator= | |
EBTStatus | Tick | |
EBTStatus | Tick | |
void | Abort | Aborts whatever is running (OnAbort down the running branch) — how a tree used as a state-tree task is stopped when its state is exited. |
bool | IsValid | |
bool | HasObservedChange | True when a key an abort-mode decorator observes changed since the last Tick returned. |
const std::vector<FName>& | GetObservedKeys | |
void | SetDebugTraceEnabled | |
bool | IsDebugTraceEnabled | |
const std::vector<FBTDebugStep>& | GetLastDebugTrace | |
const FBTDebugHistory& | GetDebugHistory | |
FBTDebugHistory& | GetDebugHistory |
Function details
BehaviorTree
C++
explicit BehaviorTree(std::unique_ptr<BTNode> root)BehaviorTree
C++
BehaviorTree(const BehaviorTree&) = deleteoperator=
C++
BehaviorTree& operator=(const BehaviorTree&) = deleteTick
C++
EBTStatus Tick(Blackboard& bb, MObject* owner, float dt)Tick
C++
EBTStatus Tick(Blackboard& bb, MObject* owner, float dt, World* world, uint64_t entity)Abort
C++
void Abort(Blackboard& bb, MObject* owner, World* world, uint64_t entity)Aborts whatever is running (OnAbort down the running branch) — how a tree used as a state-tree task is stopped when its state is exited.
IsValid
C++
bool IsValid() constHasObservedChange
C++
bool HasObservedChange(const Blackboard& bb) constTrue when a key an abort-mode decorator observes changed since the last Tick returned. BehaviorTreeSystem ticks such a tree immediately, ignoring its tick interval, so an observer abort fires on the change.
GetObservedKeys
C++
const std::vector<FName>& GetObservedKeys() constSetDebugTraceEnabled
C++
void SetDebugTraceEnabled(bool enabled)IsDebugTraceEnabled
C++
bool IsDebugTraceEnabled() constGetLastDebugTrace
C++
const std::vector<FBTDebugStep>& GetLastDebugTrace() constGetDebugHistory
C++
const FBTDebugHistory& GetDebugHistory() constGetDebugHistory
C++
FBTDebugHistory& GetDebugHistory()Generated from AINavigation/BehaviorTree.h via ainavigation.json · Oct 27, 2026Version 1.0.0