|
NoJobEngine 2.0.7
|
Base class for behavior tree nodes with stable node identifiers. More...
#include <BTNode.h>
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 |
Base class for behavior tree nodes with stable node identifiers.
|
inlineexplicit |
Definition at line 17 of file BTNode.h.
Referenced by NoJob::BTActionNode::BTActionNode(), NoJob::BTConditionNode::BTConditionNode(), NoJob::BTDecorator::BTDecorator(), BTNode(), NoJob::BTParallel::BTParallel(), NoJob::BTSelector::BTSelector(), NoJob::BTSequence::BTSequence(), NoJob::BTService::BTService(), NoJob::BTTestNode::BTTestNode(), and operator=().
|
virtualdefault |
|
delete |
References BTNode().
|
inlinevirtual |
Reimplemented in NoJob::BTDecorator, NoJob::BTParallel, NoJob::BTSelector, NoJob::BTSequence, and NoJob::BTService.
|
inlinevirtual |
Reimplemented in NoJob::BTActionNode, NoJob::BTConditionNode, NoJob::BTDecorator, NoJob::BTParallel, NoJob::BTSelector, NoJob::BTSequence, and NoJob::BTService.
|
inline |
Definition at line 21 of file BTNode.h.
Referenced by NoJob::BTDecorator::Reset(), NoJob::BTActionNode::Tick(), NoJob::BTConditionNode::Tick(), NoJob::BTDecorator::Tick(), NoJob::BTParallel::Tick(), NoJob::BTSelector::Tick(), NoJob::BTSequence::Tick(), NoJob::BTService::Tick(), and NoJob::BTTestNode::Tick().
|
inlinevirtual |
Reimplemented in NoJob::BTDecorator, NoJob::BTParallel, NoJob::BTSelector, NoJob::BTSequence, and NoJob::BTService.
Definition at line 28 of file BTNode.h.
References NoJob::BTContext::CancelNode(), and NoJob::BTContext::ResetNodeState().
Referenced by NoJob::BTDecorator::Reset(), NoJob::BTParallel::Reset(), NoJob::BTSelector::Reset(), NoJob::BTSequence::Reset(), and NoJob::BTService::Reset().
Evaluates this node for one update.
| context | Per-agent execution context. |
| deltaTime | Time elapsed since the previous tick. |
Implemented in NoJob::BTActionNode, NoJob::BTConditionNode, NoJob::BTDecorator, NoJob::BTParallel, NoJob::BTSelector, NoJob::BTSequence, NoJob::BTService, and NoJob::BTTestNode.