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

#include <BehaviourTree.hpp>

Inheritance diagram for Botcraft::BehaviourTree< Context >:
Botcraft::Node< Context > Botcraft::BaseNode

Public Member Functions

virtual ~BehaviourTree ()
 
void SetRoot (const std::shared_ptr< Node< Context > > node)
 
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 Member Functions

virtual Status TickImpl (Context &context) const override
 

Private Attributes

std::shared_ptr< Node< Context > > root
 

Additional Inherited Members

- Protected Attributes inherited from Botcraft::BaseNode
const std::string name
 

Detailed Description

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

Definition at line 225 of file BehaviourTree.hpp.

Constructor & Destructor Documentation

◆ ~BehaviourTree()

template<typename Context >
virtual Botcraft::BehaviourTree< Context >::~BehaviourTree ( )
inlinevirtual

Definition at line 229 of file BehaviourTree.hpp.

Member Function Documentation

◆ GetChild()

template<typename Context >
virtual const BaseNode * Botcraft::BehaviourTree< Context >::GetChild ( const size_t  index) const
inlineoverridevirtual

Implements Botcraft::BaseNode.

Definition at line 243 of file BehaviourTree.hpp.

References Botcraft::BehaviourTree< Context >::root.

◆ GetNodeType()

template<typename Context >
virtual BehaviourNodeType Botcraft::BehaviourTree< Context >::GetNodeType ( ) const
inlineoverridevirtual

Implements Botcraft::BaseNode.

Definition at line 233 of file BehaviourTree.hpp.

References Botcraft::Tree.

◆ GetNumChildren()

template<typename Context >
virtual size_t Botcraft::BehaviourTree< Context >::GetNumChildren ( ) const
inlineoverridevirtual

Implements Botcraft::BaseNode.

Definition at line 238 of file BehaviourTree.hpp.

References Botcraft::BehaviourTree< Context >::root.

◆ SetRoot()

template<typename Context >
void Botcraft::BehaviourTree< Context >::SetRoot ( const std::shared_ptr< Node< Context > >  node)
inline

Definition at line 231 of file BehaviourTree.hpp.

References Botcraft::BehaviourTree< Context >::root.

◆ TickImpl()

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

Member Data Documentation

◆ root


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