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

#include <BTActionNode.h>

Inheritance diagram for NoJob::BTActionNode:
NoJob::BTNode

Public Member Functions

 BTActionNode (BTNodeID id, std::shared_ptr< const BTNativeRegistry > registry, std::string actionName)
std::string DebugLabel () const override
BTStatus Tick (BTContext &context, float dt) const override
 Evaluates this node for one update.
const std::string & Name () const
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
virtual void Reset (BTContext &context) const
virtual void CollectChildren (std::vector< const BTNode * > &) const

Detailed Description

Definition at line 15 of file BTActionNode.h.

Constructor & Destructor Documentation

◆ BTActionNode()

NoJob::BTActionNode::BTActionNode ( BTNodeID id,
std::shared_ptr< const BTNativeRegistry > registry,
std::string actionName )
inline

Definition at line 17 of file BTActionNode.h.

References NoJob::BTNode::BTNode().

Member Function Documentation

◆ DebugLabel()

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

Reimplemented from NoJob::BTNode.

Definition at line 23 of file BTActionNode.h.

◆ Name()

const std::string & NoJob::BTActionNode::Name ( ) const
inline

Definition at line 36 of file BTActionNode.h.

◆ Tick()

BTStatus NoJob::BTActionNode::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 24 of file BTActionNode.h.

References NoJob::BTContext::ActiveNode(), NoJob::BTContext::CancelNode(), NoJob::BTNode::GetID(), NoJob::BTContext::RecordStatus(), NoJob::Running, and NoJob::BTContext::SetActiveNode().


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