37 const std::vector<TreeNode*>&
children()
const;
44 virtual void halt()
override;
const std::string & name() const
Name of the instance, not the type.
std::vector< TreeNode * > children_nodes_
virtual ~ControlNode() override=default
const NodeConfiguration & config() const
ControlNode(const std::string &name, const NodeConfiguration &config)
virtual void halt() override
const std::vector< TreeNode * > & children() const
Abstract base class for Behavior Tree Nodes.
void addChild(TreeNode *child)
The method used to add nodes to the children vector.
void haltChildren(unsigned i)
call halt() for all the children in the range [i, childrenCount() )
const TreeNode * child(unsigned index) const
virtual NodeType type() const overridefinal
unsigned childrenCount() const
NodeType
Enumerates the possible types of nodes.