22#include "../AI/BehaviorTree.h"
BTStatus
Behavior tree node execution status.
ComponentTypeID GetComponentTypeID_Static()
Graph execution tracing for simulation and validation.
Executes a BehaviorTree and collects trace information.
BTStatus ExecuteSelector(const BTNode &node, const BehaviorTreeAsset &btAsset, GraphExecutionTracer &outTracer)
Execute a Selector (OR) composite node.
static const char * StatusToString(BTStatus status)
Convert BTStatus to string for logging.
SubGraphCallStack m_callStack
Phase 39: Call stack for SubGraph recursion tracking.
BTStatus ExecuteCondition(const BTNode &node, GraphExecutionTracer &outTracer)
Execute a Condition leaf node.
BTStatus ExecuteTree(const BehaviorTreeAsset &btAsset, GraphExecutionTracer &outTracer)
Execute a BehaviorTree and collect trace information.
int m_executedNodes
Count of executed nodes.
BTStatus ExecuteNode(uint32_t nodeId, const BehaviorTreeAsset &btAsset, GraphExecutionTracer &outTracer)
Recursively execute a single BehaviorTree node.
BTStatus ExecuteAction(const BTNode &node, GraphExecutionTracer &outTracer)
Execute an Action leaf node.
int m_maxDepth
Track recursion depth to detect cycles.
BTStatus ExecuteSubGraph(const BTNode &node, const BehaviorTreeAsset &btAsset, GraphExecutionTracer &outTracer)
Phase 39: Execute a SubGraph reference node.
BTStatus ExecuteSequence(const BTNode &node, const BehaviorTreeAsset &btAsset, GraphExecutionTracer &outTracer)
Execute a Sequence (AND) composite node.
BTStatus ExecuteDecorator(const BTNode &node, const BehaviorTreeAsset &btAsset, GraphExecutionTracer &outTracer)
Apply a Decorator (Inverter, Repeater) to a child node result.
Records execution trace during graph simulation.
< Provides AssetID and INVALID_ASSET_ID
Represents a single node in a behavior tree.
Tracks the SubGraph call chain to detect cycles and enforce depth limits.