![]() |
Botcraft 1.21.4
|
Sequence implementation. More...
#include <BehaviourTree.hpp>
Protected Member Functions | |
virtual Status | TickImpl (Context &context) const override |
![]() | |
Status | TickChild (Context &context, const size_t index) const |
Additional Inherited Members | |
![]() | |
virtual | ~Composite () |
void | AddChild (const std::shared_ptr< Node< Context > > &child) |
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 |
![]() | |
const std::string | name |
Sequence implementation.
Run all children until one fails. Succeeds if all children succeed. Equivalent to a logical AND.
Context | The tree context type |
Definition at line 285 of file BehaviourTree.hpp.
|
inlineoverrideprotectedvirtual |
Implements Botcraft::Node< Context >.
Definition at line 289 of file BehaviourTree.hpp.
References Botcraft::Failure, Botcraft::Composite< Context >::GetNumChildren(), Botcraft::Success, and Botcraft::Composite< Context >::TickChild().