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

#include <BTParallel.h>

Inheritance diagram for NoJob::BTParallel:
NoJob::BTNode

Public Member Functions

 BTParallel (BTNodeID id, std::unique_ptr< BTNode > mainTask, std::unique_ptr< BTNode > background)
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 12 of file BTParallel.h.

Constructor & Destructor Documentation

◆ BTParallel()

NoJob::BTParallel::BTParallel ( BTNodeID id,
std::unique_ptr< BTNode > mainTask,
std::unique_ptr< BTNode > background )
inline

Definition at line 14 of file BTParallel.h.

References NoJob::BTNode::BTNode().

Member Function Documentation

◆ CollectChildren()

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

Reimplemented from NoJob::BTNode.

Definition at line 29 of file BTParallel.h.

◆ DebugLabel()

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

Reimplemented from NoJob::BTNode.

Definition at line 18 of file BTParallel.h.

◆ Reset()

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

Reimplemented from NoJob::BTNode.

Definition at line 26 of file BTParallel.h.

References NoJob::BTNode::Reset().

Referenced by Tick().

◆ Tick()

BTStatus NoJob::BTParallel::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 19 of file BTParallel.h.

References NoJob::BTNode::GetID(), NoJob::BTContext::RecordStatus(), Reset(), and NoJob::Running.


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