NoJobEngine 2.0.7
Loading...
Searching...
No Matches
NoJob::BTDecorator Class Referencefinal

#include <BTDecorator.h>

Inheritance diagram for NoJob::BTDecorator:
NoJob::BTNode

Public Member Functions

 BTDecorator (BTNodeID id, std::shared_ptr< const BTNativeRegistry > registry, std::string condition, std::string observedKey, std::unique_ptr< BTNode > child)
std::string DebugLabel () const override
BTStatus Tick (BTContext &ctx, float dt) const override
 Evaluates this node for one update.
void Reset (BTContext &ctx) const override
void CollectChildren (std::vector< const BTNode * > &out) const override
Public Member Functions inherited from NoJob::BTNode
 BTNode (BTNodeID id)
virtual ~BTNode ()=default
 BTNode (const BTNode &)=delete
BTNode & operator= (const BTNode &)=delete
BTNodeID GetID () const

Detailed Description

Definition at line 15 of file BTDecorator.h.

Constructor & Destructor Documentation

◆ BTDecorator()

NoJob::BTDecorator::BTDecorator ( BTNodeID id,
std::shared_ptr< const BTNativeRegistry > registry,
std::string condition,
std::string observedKey,
std::unique_ptr< BTNode > child )
inline

Definition at line 17 of file BTDecorator.h.

References NoJob::BTNode::BTNode().

Member Function Documentation

◆ CollectChildren()

void NoJob::BTDecorator::CollectChildren ( std::vector< const BTNode * > & out) const
inlineoverridevirtual

Reimplemented from NoJob::BTNode.

Definition at line 46 of file BTDecorator.h.

◆ DebugLabel()

std::string NoJob::BTDecorator::DebugLabel ( ) const
inlineoverridevirtual

Reimplemented from NoJob::BTNode.

Definition at line 24 of file BTDecorator.h.

◆ Reset()

void NoJob::BTDecorator::Reset ( BTContext & ctx) const
inlineoverridevirtual

◆ Tick()

BTStatus NoJob::BTDecorator::Tick ( BTContext & context,
float deltaTime ) const
inlineoverridevirtual

Evaluates this node for one update.

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

Implements NoJob::BTNode.

Definition at line 25 of file BTDecorator.h.

References NoJob::BTContext::Blackboard(), NoJob::BTContext::Emit(), NoJob::Failure, NoJob::BTNode::GetID(), NoJob::BTContext::GetNodeState(), NoJob::BTBlackboard::Observe(), NoJob::BTContext::RecordStatus(), NoJob::BTContext::RequestReevaluation(), and NoJob::BTNodeRuntimeState::TickCount.


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