Botcraft 1.21.4
Loading...
Searching...
No Matches
Botcraft::Selector< Context > Class Template Referencefinal

Selector implementation. More...

#include <BehaviourTree.hpp>

Inheritance diagram for Botcraft::Selector< Context >:
Botcraft::Composite< Context > Botcraft::Node< Context > Botcraft::BaseNode

Protected Member Functions

virtual Status TickImpl (Context &context) const override
 
- Protected Member Functions inherited from Botcraft::Composite< Context >
Status TickChild (Context &context, const size_t index) const
 

Additional Inherited Members

- Public Member Functions inherited from Botcraft::Composite< Context >
virtual ~Composite ()
 
void AddChild (const std::shared_ptr< Node< Context > > &child)
 
virtual BehaviourNodeType GetNodeType () const override
 
virtual size_t GetNumChildren () const override
 
virtual const BaseNodeGetChild (const size_t index) const override
 
- Public Member Functions inherited from Botcraft::Node< Context >
virtual ~Node ()
 
Status Tick (Context &context) const
 
- Public Member Functions inherited from Botcraft::BaseNode
 BaseNode (const std::string &name_)
 
virtual ~BaseNode ()
 
std::string GetFullDescriptor () const
 
const std::string & GetName () const
 
std::string GetClassName () const
 
- Protected Attributes inherited from Botcraft::BaseNode
const std::string name
 

Detailed Description

template<typename Context>
class Botcraft::Selector< Context >

Selector implementation.

Run all children until one succeeds. Fails if all children fail. Equivalent to a logical OR.

Template Parameters
ContextThe tree context type

Definition at line 308 of file BehaviourTree.hpp.

Member Function Documentation

◆ TickImpl()

template<typename Context >
virtual Status Botcraft::Selector< Context >::TickImpl ( Context &  context) const
inlineoverrideprotectedvirtual

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