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

#include <BTSelector.h>

Inheritance diagram for NoJob::BTSelector:
NoJob::BTNode

Public Member Functions

 BTSelector (BTNodeID id)
void AddChild (std::unique_ptr< BTNode > child)
std::string DebugLabel () const override
BTStatus Tick (BTContext &context, float dt) const override
 Evaluates this node for one update.
void Reset (BTContext &context) 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 13 of file BTSelector.h.

Constructor & Destructor Documentation

◆ BTSelector()

NoJob::BTSelector::BTSelector ( BTNodeID id)
inlineexplicit

Definition at line 15 of file BTSelector.h.

References NoJob::BTNode::BTNode().

Member Function Documentation

◆ AddChild()

void NoJob::BTSelector::AddChild ( std::unique_ptr< BTNode > child)
inline

Definition at line 16 of file BTSelector.h.

◆ CollectChildren()

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

Reimplemented from NoJob::BTNode.

Definition at line 65 of file BTSelector.h.

◆ DebugLabel()

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

Reimplemented from NoJob::BTNode.

Definition at line 19 of file BTSelector.h.

◆ Reset()

void NoJob::BTSelector::Reset ( BTContext & context) const
inlineoverridevirtual

Reimplemented from NoJob::BTNode.

Definition at line 61 of file BTSelector.h.

References NoJob::BTNode::Reset().

Referenced by Tick().

◆ Tick()

BTStatus NoJob::BTSelector::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 20 of file BTSelector.h.

References NoJob::BTContext::ConsumeReevaluation(), NoJob::BTNodeRuntimeState::CurrentChild, NoJob::BTContext::Emit(), NoJob::Failure, NoJob::BTNode::GetID(), NoJob::BTContext::GetNodeState(), Reset(), NoJob::Running, and NoJob::Success.


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