Go to the documentation of this file. 1 #ifndef DECORATORNODE_H
2 #define DECORATORNODE_H
25 virtual void halt()
override;
NodeType
Enumerates the possible types of nodes.
NodeStatus executeTick() override
The method that should be used to invoke tick() and setStatus();.
const NodeConfig & config() const
std::function< NodeStatus(NodeStatus, TreeNode &)> TickFunctor
virtual NodeStatus tick() override
Method to be implemented by the user.
The SimpleDecoratorNode provides an easy to use DecoratorNode. The user should simply provide a callb...
virtual NodeType type() const override
void haltChild()
Same as resetChild()
Abstract base class for Behavior Tree Nodes.
virtual ~DecoratorNode() override=default
~SimpleDecoratorNode() override=default
SimpleDecoratorNode(const std::string &name, TickFunctor tick_functor, const NodeConfig &config)
const std::string & name() const
Name of the instance, not the type.
friend class DecoratorNode
const TreeNode * child() const
TickFunctor tick_functor_
virtual void halt() override
The method used to interrupt the execution of this node.
void setChild(TreeNode *child)