NoJobEngine 2.0.7
Loading...
Searching...
No Matches
NoJob::BTNode Class Referenceabstract

Base class for behavior tree nodes with stable node identifiers. More...

#include <BTNode.h>

Inheritance diagram for NoJob::BTNode:
NoJob::BTActionNode NoJob::BTConditionNode NoJob::BTDecorator NoJob::BTParallel NoJob::BTSelector NoJob::BTSequence NoJob::BTService NoJob::BTTestNode

Public Member Functions

 BTNode (BTNodeID id)
virtual ~BTNode ()=default
 BTNode (const BTNode &)=delete
BTNode & operator= (const BTNode &)=delete
BTNodeID GetID () const
virtual std::string DebugLabel () const
virtual BTStatus Tick (BTContext &context, float deltaTime) const =0
 Evaluates this node for one update.
virtual void Reset (BTContext &context) const
virtual void CollectChildren (std::vector< const BTNode * > &) const

Detailed Description

Base class for behavior tree nodes with stable node identifiers.

Definition at line 15 of file BTNode.h.

Constructor & Destructor Documentation

◆ BTNode() [1/2]

◆ ~BTNode()

virtual NoJob::BTNode::~BTNode ( )
virtualdefault

◆ BTNode() [2/2]

NoJob::BTNode::BTNode ( const BTNode & )
delete

References BTNode().

Member Function Documentation

◆ CollectChildren()

virtual void NoJob::BTNode::CollectChildren ( std::vector< const BTNode * > & ) const
inlinevirtual

◆ DebugLabel()

virtual std::string NoJob::BTNode::DebugLabel ( ) const
inlinevirtual

◆ GetID()

◆ operator=()

BTNode & NoJob::BTNode::operator= ( const BTNode & )
delete

References BTNode().

◆ Reset()

◆ Tick()

virtual BTStatus NoJob::BTNode::Tick ( BTContext & context,
float deltaTime ) const
pure virtual

Evaluates this node for one update.

Parameters
contextPer-agent execution context.
deltaTimeTime elapsed since the previous tick.
Returns
Success, Failure or Running.

Implemented in NoJob::BTActionNode, NoJob::BTConditionNode, NoJob::BTDecorator, NoJob::BTParallel, NoJob::BTSelector, NoJob::BTSequence, NoJob::BTService, and NoJob::BTTestNode.


The documentation for this class was generated from the following file: