14 #ifndef BEHAVIOR_TREE_H 15 #define BEHAVIOR_TREE_H 53 const std::function<
void(
const TreeNode*)>& visitor);
57 const std::function<
void(TreeNode*)>& visitor);
75 SerializedTreeStatus& serialized_buffer);
95 #endif // BEHAVIOR_TREE_H
std::vector< std::pair< uint16_t, uint8_t > > SerializedTreeStatus
void printTreeRecursively(const TreeNode *root_node, std::ostream &stream=std::cout)
Abstract base class for Behavior Tree Nodes.
void buildSerializedStatusSnapshot(const TreeNode *root_node, SerializedTreeStatus &serialized_buffer)
buildSerializedStatusSnapshot can be used to create a buffer that can be stored (or sent to a client ...
NodeType
Enumerates the possible types of nodes.
void applyRecursiveVisitor(const TreeNode *root_node, const std::function< void(const TreeNode *)> &visitor)