![]() |
Botcraft 1.21.4
|
#include <BehaviourTree.hpp>
Public Member Functions | |
Builder (const std::string &name="") | |
template<typename S , typename... Args, typename = typename std::enable_if_t<std::is_convertible_v<S, std::string>>> | |
std::shared_ptr< BehaviourTree< Context > > | leaf (const S &s, Args &&... args) |
template<typename... Args> | |
std::shared_ptr< BehaviourTree< Context > > | leaf (Args &&... args) |
CompositeBuilder< Builder, Context > | sequence (const std::string &s="") |
CompositeBuilder< Builder, Context > | selector (const std::string &s="") |
template<typename CompositeType , typename... Args, typename S , typename = typename std::enable_if_t<std::is_convertible_v<S, std::string>>> | |
CompositeBuilder< Builder, Context > | composite (const S &s, Args &&... args) |
template<typename CompositeType , typename... Args> | |
CompositeBuilder< Builder, Context > | composite (Args &&... args) |
DecoratorBuilder< Builder, Context > | inverter (const std::string &s="") |
DecoratorBuilder< Builder, Context > | succeeder (const std::string &s="") |
DecoratorBuilder< Builder, Context > | repeater (const size_t n) |
DecoratorBuilder< Builder, Context > | repeater (const std::string &s, const size_t n) |
template<typename DecoratorType , typename... Args, typename S , typename = typename std::enable_if_t<std::is_convertible_v<S, std::string>>> | |
DecoratorBuilder< Builder, Context > | decorator (const S &s, Args &&... args) |
template<typename DecoratorType , typename... Args> | |
DecoratorBuilder< Builder, Context > | decorator (Args &&... args) |
Private Member Functions | |
std::shared_ptr< BehaviourTree< Context > > | build () |
Private Attributes | |
friend | DecoratorBuilder< Builder, Context > |
friend | CompositeBuilder< Builder, Context > |
const std::string | root_name |
std::shared_ptr< Node< Context > > | root |
Definition at line 736 of file BehaviourTree.hpp.
|
inline |
Definition at line 739 of file BehaviourTree.hpp.
|
inlineprivate |
Definition at line 850 of file BehaviourTree.hpp.
References Botcraft::Builder< Context >::root, and Botcraft::Builder< Context >::root_name.
|
inline |
Definition at line 792 of file BehaviourTree.hpp.
References Botcraft::Builder< Context >::CompositeBuilder< Builder, Context >, and Botcraft::Builder< Context >::root.
|
inline |
Definition at line 783 of file BehaviourTree.hpp.
References Botcraft::Builder< Context >::CompositeBuilder< Builder, Context >, and Botcraft::Builder< Context >::root.
|
inline |
Definition at line 843 of file BehaviourTree.hpp.
References Botcraft::Builder< Context >::DecoratorBuilder< Builder, Context >, and Botcraft::Builder< Context >::root.
|
inline |
Definition at line 834 of file BehaviourTree.hpp.
References Botcraft::Builder< Context >::DecoratorBuilder< Builder, Context >, and Botcraft::Builder< Context >::root.
|
inline |
Definition at line 800 of file BehaviourTree.hpp.
References Botcraft::Builder< Context >::DecoratorBuilder< Builder, Context >, and Botcraft::Builder< Context >::root.
|
inline |
Definition at line 753 of file BehaviourTree.hpp.
References Botcraft::Builder< Context >::root_name.
|
inline |
Definition at line 746 of file BehaviourTree.hpp.
References Botcraft::Builder< Context >::root_name.
|
inline |
Definition at line 814 of file BehaviourTree.hpp.
References Botcraft::Builder< Context >::DecoratorBuilder< Builder, Context >, and Botcraft::Builder< Context >::root.
|
inline |
Definition at line 821 of file BehaviourTree.hpp.
References Botcraft::Builder< Context >::DecoratorBuilder< Builder, Context >, and Botcraft::Builder< Context >::root.
|
inline |
Definition at line 770 of file BehaviourTree.hpp.
References Botcraft::Builder< Context >::CompositeBuilder< Builder, Context >, and Botcraft::Builder< Context >::root.
|
inline |
Definition at line 763 of file BehaviourTree.hpp.
References Botcraft::Builder< Context >::CompositeBuilder< Builder, Context >, and Botcraft::Builder< Context >::root.
|
inline |
Definition at line 807 of file BehaviourTree.hpp.
References Botcraft::Builder< Context >::DecoratorBuilder< Builder, Context >, and Botcraft::Builder< Context >::root.
|
private |
Definition at line 857 of file BehaviourTree.hpp.
Referenced by Botcraft::Builder< Context >::composite(), Botcraft::Builder< Context >::composite(), Botcraft::Builder< Context >::selector(), and Botcraft::Builder< Context >::sequence().
|
private |
Definition at line 856 of file BehaviourTree.hpp.
Referenced by Botcraft::Builder< Context >::decorator(), Botcraft::Builder< Context >::decorator(), Botcraft::Builder< Context >::inverter(), Botcraft::Builder< Context >::repeater(), Botcraft::Builder< Context >::repeater(), and Botcraft::Builder< Context >::succeeder().
|
private |
Definition at line 861 of file BehaviourTree.hpp.
Referenced by Botcraft::Builder< Context >::build(), Botcraft::Builder< Context >::composite(), Botcraft::Builder< Context >::composite(), Botcraft::Builder< Context >::decorator(), Botcraft::Builder< Context >::decorator(), Botcraft::Builder< Context >::inverter(), Botcraft::Builder< Context >::repeater(), Botcraft::Builder< Context >::repeater(), Botcraft::Builder< Context >::selector(), Botcraft::Builder< Context >::sequence(), and Botcraft::Builder< Context >::succeeder().
|
private |
Definition at line 860 of file BehaviourTree.hpp.
Referenced by Botcraft::Builder< Context >::build(), Botcraft::Builder< Context >::leaf(), and Botcraft::Builder< Context >::leaf().