/* behavior_tree.h */ #ifndef BEHAVIOR_TREE_H #define BEHAVIOR_TREE_H #include "bt_task.h" #include "core/io/resource.h" #include "core/object/object.h" #include "modules/limboai/blackboard.h" class BehaviorTree : public Resource { GDCLASS(BehaviorTree, Resource); private: String description; Ref root_task; protected: static void _bind_methods(); public: void set_description(String p_value) { description = p_value; emit_changed(); } String get_description() const { return description; } void set_root_task(const Ref &p_value) { root_task = p_value; emit_changed(); } Ref get_root_task() const { return root_task; } void init(); Ref clone() const; Ref instance(Object *p_agent, const Ref &p_blackboard) const; }; #endif // BEHAVIOR_TREE_H