![]() |
Botcraft 1.21.4
|
#include <BehaviourTree.hpp>
Public Member Functions | |
Leaf ()=delete | |
template<typename FuncType > | |
Leaf (const std::string &s, FuncType func_) | |
template<typename FuncType , typename... Args> | |
Leaf (const std::string &s, FuncType func_, Args &&... args) | |
virtual | ~Leaf () |
virtual BehaviourNodeType | GetNodeType () const override |
virtual size_t | GetNumChildren () const override |
virtual const BaseNode * | GetChild (const size_t index) const override |
![]() | |
virtual | ~Node () |
Status | Tick (Context &context) const |
![]() | |
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::function< Status(Context &)> | func |
Additional Inherited Members | |
![]() | |
const std::string | name |
Definition at line 171 of file BehaviourTree.hpp.
|
delete |
|
inline |
Definition at line 177 of file BehaviourTree.hpp.
|
inline |
Definition at line 180 of file BehaviourTree.hpp.
References Botcraft::Leaf< Context >::func.
|
inlinevirtual |
Definition at line 185 of file BehaviourTree.hpp.
|
inlineoverridevirtual |
Implements Botcraft::BaseNode.
Definition at line 197 of file BehaviourTree.hpp.
|
inlineoverridevirtual |
Implements Botcraft::BaseNode.
Definition at line 187 of file BehaviourTree.hpp.
References Botcraft::Leaf.
|
inlineoverridevirtual |
Implements Botcraft::BaseNode.
Definition at line 192 of file BehaviourTree.hpp.
|
inlineoverrideprotectedvirtual |
Implements Botcraft::Node< Context >.
Definition at line 203 of file BehaviourTree.hpp.
References Botcraft::Leaf< Context >::func, and Botcraft::BaseNode::name.
|
private |
Definition at line 221 of file BehaviourTree.hpp.
Referenced by Botcraft::Leaf< Context >::Leaf(), and Botcraft::Leaf< Context >::TickImpl().