37 const std::vector<TreeNode*>&
children()
const;
44 virtual void halt()
override;
48 [[deprecated(
"deprecated: please use explicitly haltChildren() or haltChild(i)")]]
size_t childrenCount() const
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
const TreeNode * child(size_t index) const
Abstract base class for Behavior Tree Nodes.
void addChild(TreeNode *child)
The method used to add nodes to the children vector.
virtual NodeType type() const overridefinal
NodeType
Enumerates the possible types of nodes.