class

BehaviorTree

Owns a root node + drives it. Non-copyable (owns a unique_ptr).

Module
AINavigation
Header
#include "AINavigation/BehaviorTree.h"
Namespace
Mowo

Constructors

SignatureNameDescription
explicit BehaviorTree(std::unique_ptr<BTNode> root)BehaviorTree
BehaviorTree(const BehaviorTree&) = deleteBehaviorTree

Public functions

ReturnsNameDescription
BehaviorTree&operator=
EBTStatusTick
EBTStatusTick
voidAbortAborts whatever is running (OnAbort down the running branch) — how a tree used as a state-tree task is stopped when its state is exited.
boolIsValid
boolHasObservedChangeTrue when a key an abort-mode decorator observes changed since the last Tick returned.
const std::vector<FName>&GetObservedKeys
voidSetDebugTraceEnabled
boolIsDebugTraceEnabled
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&) = delete

operator=

C++
BehaviorTree& operator=(const BehaviorTree&) = delete

Tick

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() const

HasObservedChange

C++
bool HasObservedChange(const Blackboard& bb) const

True 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() const

SetDebugTraceEnabled

C++
void SetDebugTraceEnabled(bool enabled)

IsDebugTraceEnabled

C++
bool IsDebugTraceEnabled() const

GetLastDebugTrace

C++
const std::vector<FBTDebugStep>& GetLastDebugTrace() const

GetDebugHistory

C++
const FBTDebugHistory& GetDebugHistory() const

GetDebugHistory

C++
FBTDebugHistory& GetDebugHistory()
Generated from AINavigation/BehaviorTree.h via ainavigation.json · Oct 27, 2026Version 1.0.0