/* bt_state.h */ #ifndef BT_STATE_H #define BT_STATE_H #include "core/object.h" #include "modules/limboai/bt/behavior_tree.h" #include "modules/limboai/bt/bt_task.h" #include "modules/limboai/limbo_state.h" class BTState : public LimboState { GDCLASS(BTState, LimboState); private: Ref behavior_tree; // Ref blackboard; Ref root_task; protected: static void _bind_methods(); virtual void _setup(); virtual void _enter() {} virtual void _exit(); virtual void _update(float p_delta); // void _set_blackboard_data(Dictionary p_value) { blackboard->set_data(p_value); } // Dictionary _get_blackboard_data() const { return blackboard->get_data(); } public: void set_behavior_tree(const Ref &p_value) { behavior_tree = p_value; } Ref get_behavior_tree() const { return behavior_tree; } // virtual void initialize(Object *p_agent, const Ref &p_blackboard); BTState(); }; #endif // BT_STATE_H