Reorganize BT tasks

This commit is contained in:
Serhii Snitsaruk 2023-08-15 17:49:13 +02:00
parent 21c65541bf
commit 13f5eb1f71
98 changed files with 110 additions and 179 deletions

9
SCsub
View File

@ -9,10 +9,11 @@ module_env.add_source_files(env.modules_sources, "*.cpp")
module_env.add_source_files(env.modules_sources, "blackboard/*.cpp") module_env.add_source_files(env.modules_sources, "blackboard/*.cpp")
module_env.add_source_files(env.modules_sources, "blackboard/bb_param/*.cpp") module_env.add_source_files(env.modules_sources, "blackboard/bb_param/*.cpp")
module_env.add_source_files(env.modules_sources, "bt/*.cpp") module_env.add_source_files(env.modules_sources, "bt/*.cpp")
module_env.add_source_files(env.modules_sources, "bt/composites/*.cpp") module_env.add_source_files(env.modules_sources, "bt/tasks/*.cpp")
module_env.add_source_files(env.modules_sources, "bt/actions/*.cpp") module_env.add_source_files(env.modules_sources, "bt/tasks/composites/*.cpp")
module_env.add_source_files(env.modules_sources, "bt/decorators/*.cpp") module_env.add_source_files(env.modules_sources, "bt/tasks/actions/*.cpp")
module_env.add_source_files(env.modules_sources, "bt/conditions/*.cpp") module_env.add_source_files(env.modules_sources, "bt/tasks/decorators/*.cpp")
module_env.add_source_files(env.modules_sources, "bt/tasks/conditions/*.cpp")
if env.editor_build: if env.editor_build:
module_env.add_source_files(env.modules_sources, "editor/*.cpp") module_env.add_source_files(env.modules_sources, "editor/*.cpp")
module_env.add_source_files(env.modules_sources, "editor/debugger/*.cpp") module_env.add_source_files(env.modules_sources, "editor/debugger/*.cpp")

View File

@ -13,7 +13,6 @@
#include "core/error/error_macros.h" #include "core/error/error_macros.h"
#include "core/object/class_db.h" #include "core/object/class_db.h"
#include "core/object/object.h"
#include "core/templates/list.h" #include "core/templates/list.h"
#include "core/variant/variant.h" #include "core/variant/variant.h"

View File

@ -12,12 +12,10 @@
#ifndef BEHAVIOR_TREE_H #ifndef BEHAVIOR_TREE_H
#define BEHAVIOR_TREE_H #define BEHAVIOR_TREE_H
#include "bt_task.h" #include "core/io/resource.h"
#include "modules/limboai/blackboard/blackboard.h" #include "modules/limboai/blackboard/blackboard.h"
#include "tasks/bt_task.h"
#include "core/io/resource.h"
#include "core/object/object.h"
class BehaviorTree : public Resource { class BehaviorTree : public Resource {
GDCLASS(BehaviorTree, Resource); GDCLASS(BehaviorTree, Resource);

View File

@ -11,7 +11,6 @@
#include "bt_player.h" #include "bt_player.h"
#include "bt_task.h"
#include "modules/limboai/blackboard/blackboard.h" #include "modules/limboai/blackboard/blackboard.h"
#include "modules/limboai/editor/debugger/limbo_debugger.h" #include "modules/limboai/editor/debugger/limbo_debugger.h"
#include "modules/limboai/util/limbo_string_names.h" #include "modules/limboai/util/limbo_string_names.h"
@ -20,7 +19,6 @@
#include "core/error/error_macros.h" #include "core/error/error_macros.h"
#include "core/io/resource_loader.h" #include "core/io/resource_loader.h"
#include "core/object/class_db.h" #include "core/object/class_db.h"
#include "core/object/object.h"
#include "core/os/memory.h" #include "core/os/memory.h"
#include "core/string/string_name.h" #include "core/string/string_name.h"
#include "core/variant/variant.h" #include "core/variant/variant.h"

View File

@ -12,13 +12,12 @@
#ifndef BT_PLAYER_H #ifndef BT_PLAYER_H
#define BT_PLAYER_H #define BT_PLAYER_H
#include "behavior_tree.h"
#include "bt_task.h"
#include "modules/limboai/blackboard/blackboard.h"
#include "core/object/object.h"
#include "scene/main/node.h" #include "scene/main/node.h"
#include "behavior_tree.h"
#include "modules/limboai/blackboard/blackboard.h"
#include "tasks/bt_task.h"
class BTPlayer : public Node { class BTPlayer : public Node {
GDCLASS(BTPlayer, Node); GDCLASS(BTPlayer, Node);

View File

@ -11,7 +11,6 @@
#include "bt_state.h" #include "bt_state.h"
#include "modules/limboai/bt/bt_task.h"
#include "modules/limboai/editor/debugger/limbo_debugger.h" #include "modules/limboai/editor/debugger/limbo_debugger.h"
#include "modules/limboai/hsm/limbo_state.h" #include "modules/limboai/hsm/limbo_state.h"
#include "modules/limboai/util/limbo_string_names.h" #include "modules/limboai/util/limbo_string_names.h"

View File

@ -12,11 +12,10 @@
#ifndef BT_STATE_H #ifndef BT_STATE_H
#define BT_STATE_H #define BT_STATE_H
#include "modules/limboai/bt/behavior_tree.h"
#include "modules/limboai/bt/bt_task.h"
#include "modules/limboai/hsm/limbo_state.h" #include "modules/limboai/hsm/limbo_state.h"
#include "core/object/object.h" #include "modules/limboai/bt/behavior_tree.h"
#include "modules/limboai/bt/tasks/bt_task.h"
class BTState : public LimboState { class BTState : public LimboState {
GDCLASS(BTState, LimboState); GDCLASS(BTState, LimboState);

View File

@ -12,7 +12,7 @@
#ifndef BT_AWAIT_ANIMATION_H #ifndef BT_AWAIT_ANIMATION_H
#define BT_AWAIT_ANIMATION_H #define BT_AWAIT_ANIMATION_H
#include "bt_action.h" #include "../bt_action.h"
#include "modules/limboai/blackboard/bb_param/bb_node.h" #include "modules/limboai/blackboard/bb_param/bb_node.h"

View File

@ -12,7 +12,7 @@
#ifndef BT_CALL_METHOD_H #ifndef BT_CALL_METHOD_H
#define BT_CALL_METHOD_H #define BT_CALL_METHOD_H
#include "bt_action.h" #include "../bt_action.h"
#include "modules/limboai/blackboard/bb_param/bb_node.h" #include "modules/limboai/blackboard/bb_param/bb_node.h"

View File

@ -11,8 +11,6 @@
#include "bt_console_print.h" #include "bt_console_print.h"
#include "modules/limboai/bt/actions/bt_action.h"
#include "core/object/object.h" #include "core/object/object.h"
#include "core/string/print_string.h" #include "core/string/print_string.h"

View File

@ -12,9 +12,8 @@
#ifndef BT_CONSOLE_PRINT_H #ifndef BT_CONSOLE_PRINT_H
#define BT_CONSOLE_PRINT_H #define BT_CONSOLE_PRINT_H
#include "bt_action.h" #include "../bt_action.h"
#include "core/object/object.h"
#include "core/variant/variant.h" #include "core/variant/variant.h"
class BTConsolePrint : public BTAction { class BTConsolePrint : public BTAction {

View File

@ -12,9 +12,7 @@
#ifndef BT_FAIL_H #ifndef BT_FAIL_H
#define BT_FAIL_H #define BT_FAIL_H
#include "bt_action.h" #include "../bt_action.h"
#include "core/object/object.h"
class BTFail : public BTAction { class BTFail : public BTAction {
GDCLASS(BTFail, BTAction); GDCLASS(BTFail, BTAction);

View File

@ -12,7 +12,7 @@
#ifndef BT_PAUSE_ANIMATION_H #ifndef BT_PAUSE_ANIMATION_H
#define BT_PAUSE_ANIMATION_H #define BT_PAUSE_ANIMATION_H
#include "bt_action.h" #include "../bt_action.h"
#include "modules/limboai/blackboard/bb_param/bb_node.h" #include "modules/limboai/blackboard/bb_param/bb_node.h"

View File

@ -12,7 +12,7 @@
#ifndef BT_PLAY_ANIMATION_H #ifndef BT_PLAY_ANIMATION_H
#define BT_PLAY_ANIMATION_H #define BT_PLAY_ANIMATION_H
#include "bt_action.h" #include "../bt_action.h"
#include "modules/limboai/blackboard/bb_param/bb_node.h" #include "modules/limboai/blackboard/bb_param/bb_node.h"

View File

@ -12,9 +12,7 @@
#ifndef BT_RANDOM_WAIT_H #ifndef BT_RANDOM_WAIT_H
#define BT_RANDOM_WAIT_H #define BT_RANDOM_WAIT_H
#include "bt_action.h" #include "../bt_action.h"
#include "core/object/object.h"
class BTRandomWait : public BTAction { class BTRandomWait : public BTAction {
GDCLASS(BTRandomWait, BTAction); GDCLASS(BTRandomWait, BTAction);

View File

@ -12,13 +12,10 @@
#ifndef BT_SET_AGENT_PROPERTY_H #ifndef BT_SET_AGENT_PROPERTY_H
#define BT_SET_AGENT_PROPERTY_H #define BT_SET_AGENT_PROPERTY_H
#include "modules/limboai/bt/actions/bt_action.h" #include "../bt_action.h"
#include "modules/limboai/blackboard/bb_param/bb_variant.h" #include "modules/limboai/blackboard/bb_param/bb_variant.h"
#include "core/object/class_db.h"
#include "core/object/object.h"
class BTSetAgentProperty : public BTAction { class BTSetAgentProperty : public BTAction {
GDCLASS(BTSetAgentProperty, BTAction); GDCLASS(BTSetAgentProperty, BTAction);

View File

@ -13,11 +13,10 @@
#ifndef BT_SET_VAR_H #ifndef BT_SET_VAR_H
#define BT_SET_VAR_H #define BT_SET_VAR_H
#include "../actions/bt_action.h" #include "../bt_action.h"
#include "../../blackboard/bb_param/bb_variant.h" #include "modules/limboai/blackboard/bb_param/bb_variant.h"
#include "core/object/object.h"
#include "core/string/ustring.h" #include "core/string/ustring.h"
class BTSetVar : public BTAction { class BTSetVar : public BTAction {

View File

@ -9,7 +9,7 @@
* ============================================================================= * =============================================================================
*/ */
#include "modules/limboai/bt/actions/bt_stop_animation.h" #include "bt_stop_animation.h"
//**** Setters / Getters //**** Setters / Getters

View File

@ -12,7 +12,7 @@
#ifndef BT_STOP_ANIMATION_H #ifndef BT_STOP_ANIMATION_H
#define BT_STOP_ANIMATION_H #define BT_STOP_ANIMATION_H
#include "bt_action.h" #include "../bt_action.h"
#include "modules/limboai/blackboard/bb_param/bb_node.h" #include "modules/limboai/blackboard/bb_param/bb_node.h"

View File

@ -12,9 +12,7 @@
#ifndef BT_WAIT_H #ifndef BT_WAIT_H
#define BT_WAIT_H #define BT_WAIT_H
#include "bt_action.h" #include "../bt_action.h"
#include "core/object/object.h"
class BTWait : public BTAction { class BTWait : public BTAction {
GDCLASS(BTWait, BTAction); GDCLASS(BTWait, BTAction);

View File

@ -11,7 +11,6 @@
#include "bt_wait_ticks.h" #include "bt_wait_ticks.h"
#include "core/object/class_db.h"
#include "core/object/object.h" #include "core/object/object.h"
#include "core/variant/variant.h" #include "core/variant/variant.h"

View File

@ -12,9 +12,7 @@
#ifndef BT_WAIT_TICKS_H #ifndef BT_WAIT_TICKS_H
#define BT_WAIT_TICKS_H #define BT_WAIT_TICKS_H
#include "bt_action.h" #include "../bt_action.h"
#include "core/object/object.h"
class BTWaitTicks : public BTAction { class BTWaitTicks : public BTAction {
GDCLASS(BTWaitTicks, BTAction); GDCLASS(BTWaitTicks, BTAction);

View File

@ -12,9 +12,7 @@
#ifndef BT_ACTION_H #ifndef BT_ACTION_H
#define BT_ACTION_H #define BT_ACTION_H
#include "../bt_task.h" #include "bt_task.h"
#include "core/object/object.h"
class BTAction : public BTTask { class BTAction : public BTTask {
GDCLASS(BTAction, BTTask); GDCLASS(BTAction, BTTask);

View File

@ -12,9 +12,7 @@
#ifndef BT_COMPOSITE_H #ifndef BT_COMPOSITE_H
#define BT_COMPOSITE_H #define BT_COMPOSITE_H
#include "../bt_task.h" #include "bt_task.h"
#include "core/object/object.h"
class BTComposite : public BTTask { class BTComposite : public BTTask {
GDCLASS(BTComposite, BTTask); GDCLASS(BTComposite, BTTask);

View File

@ -12,9 +12,7 @@
#ifndef BT_CONDITION_H #ifndef BT_CONDITION_H
#define BT_CONDITION_H #define BT_CONDITION_H
#include "../bt_task.h" #include "bt_task.h"
#include "core/object/object.h"
class BTCondition : public BTTask { class BTCondition : public BTTask {
GDCLASS(BTCondition, BTTask); GDCLASS(BTCondition, BTTask);

View File

@ -12,9 +12,7 @@
#ifndef BT_DECORATOR_H #ifndef BT_DECORATOR_H
#define BT_DECORATOR_H #define BT_DECORATOR_H
#include "../bt_task.h" #include "bt_task.h"
#include "core/object/object.h"
class BTDecorator : public BTTask { class BTDecorator : public BTTask {
GDCLASS(BTDecorator, BTTask) GDCLASS(BTDecorator, BTTask)

View File

@ -12,9 +12,7 @@
#ifndef BT_DYNAMIC_SELECTOR_H #ifndef BT_DYNAMIC_SELECTOR_H
#define BT_DYNAMIC_SELECTOR_H #define BT_DYNAMIC_SELECTOR_H
#include "bt_composite.h" #include "../bt_composite.h"
#include "core/object/object.h"
class BTDynamicSelector : public BTComposite { class BTDynamicSelector : public BTComposite {
GDCLASS(BTDynamicSelector, BTComposite); GDCLASS(BTDynamicSelector, BTComposite);

View File

@ -12,9 +12,7 @@
#ifndef BT_DYNAMIC_SEQUENCE_H #ifndef BT_DYNAMIC_SEQUENCE_H
#define BT_DYNAMIC_SEQUENCE_H #define BT_DYNAMIC_SEQUENCE_H
#include "bt_composite.h" #include "../bt_composite.h"
#include "core/object/object.h"
class BTDynamicSequence : public BTComposite { class BTDynamicSequence : public BTComposite {
GDCLASS(BTDynamicSequence, BTComposite); GDCLASS(BTDynamicSequence, BTComposite);

View File

@ -12,9 +12,7 @@
#ifndef BT_PARALLEL_H #ifndef BT_PARALLEL_H
#define BT_PARALLEL_H #define BT_PARALLEL_H
#include "bt_composite.h" #include "../bt_composite.h"
#include "core/object/object.h"
class BTParallel : public BTComposite { class BTParallel : public BTComposite {
GDCLASS(BTParallel, BTComposite); GDCLASS(BTParallel, BTComposite);

View File

@ -12,7 +12,7 @@
#ifndef BT_RANDOM_SELECTOR_H #ifndef BT_RANDOM_SELECTOR_H
#define BT_RANDOM_SELECTOR_H #define BT_RANDOM_SELECTOR_H
#include "bt_composite.h" #include "../bt_composite.h"
#include "core/templates/vector.h" #include "core/templates/vector.h"

View File

@ -12,7 +12,7 @@
#ifndef BT_RANDOM_SEQUENCE_H #ifndef BT_RANDOM_SEQUENCE_H
#define BT_RANDOM_SEQUENCE_H #define BT_RANDOM_SEQUENCE_H
#include "bt_composite.h" #include "../bt_composite.h"
#include "core/templates/vector.h" #include "core/templates/vector.h"

View File

@ -12,7 +12,7 @@
#ifndef BT_SELECTOR_H #ifndef BT_SELECTOR_H
#define BT_SELECTOR_H #define BT_SELECTOR_H
#include "bt_composite.h" #include "../bt_composite.h"
class BTSelector : public BTComposite { class BTSelector : public BTComposite {
GDCLASS(BTSelector, BTComposite); GDCLASS(BTSelector, BTComposite);

View File

@ -12,9 +12,7 @@
#ifndef BT_SEQUENCE_H #ifndef BT_SEQUENCE_H
#define BT_SEQUENCE_H #define BT_SEQUENCE_H
#include "bt_composite.h" #include "../bt_composite.h"
#include "core/object/object.h"
class BTSequence : public BTComposite { class BTSequence : public BTComposite {
GDCLASS(BTSequence, BTComposite); GDCLASS(BTSequence, BTComposite);

View File

@ -12,12 +12,11 @@
#ifndef BT_CHECK_AGENT_PROPERTY #ifndef BT_CHECK_AGENT_PROPERTY
#define BT_CHECK_AGENT_PROPERTY #define BT_CHECK_AGENT_PROPERTY
#include "bt_condition.h" #include "../bt_condition.h"
#include "modules/limboai/blackboard/bb_param/bb_variant.h" #include "modules/limboai/blackboard/bb_param/bb_variant.h"
#include "modules/limboai/util/limbo_utility.h" #include "modules/limboai/util/limbo_utility.h"
#include "core/object/object.h"
#include "core/string/string_name.h" #include "core/string/string_name.h"
class BTCheckAgentProperty : public BTCondition { class BTCheckAgentProperty : public BTCondition {

View File

@ -11,7 +11,6 @@
#include "bt_check_trigger.h" #include "bt_check_trigger.h"
#include "bt_condition.h"
#include "modules/limboai/util/limbo_utility.h" #include "modules/limboai/util/limbo_utility.h"
#include "core/variant/variant.h" #include "core/variant/variant.h"

View File

@ -14,13 +14,10 @@
#ifndef BT_CHECK_TRIGGER_H #ifndef BT_CHECK_TRIGGER_H
#define BT_CHECK_TRIGGER_H #define BT_CHECK_TRIGGER_H
#include "bt_condition.h" #include "../bt_condition.h"
#include "core/object/object.h"
#include "core/string/ustring.h" #include "core/string/ustring.h"
#include "core/object/class_db.h"
class BTCheckTrigger : public BTCondition { class BTCheckTrigger : public BTCondition {
GDCLASS(BTCheckTrigger, BTCondition); GDCLASS(BTCheckTrigger, BTCondition);

View File

@ -12,7 +12,7 @@
#ifndef BT_CHECK_VAR_H #ifndef BT_CHECK_VAR_H
#define BT_CHECK_VAR_H #define BT_CHECK_VAR_H
#include "bt_condition.h" #include "../bt_condition.h"
#include "modules/limboai/blackboard/bb_param/bb_variant.h" #include "modules/limboai/blackboard/bb_param/bb_variant.h"
#include "modules/limboai/util/limbo_utility.h" #include "modules/limboai/util/limbo_utility.h"

View File

@ -12,9 +12,7 @@
#ifndef BT_ALWAYS_FAIL_H #ifndef BT_ALWAYS_FAIL_H
#define BT_ALWAYS_FAIL_H #define BT_ALWAYS_FAIL_H
#include "bt_decorator.h" #include "../bt_decorator.h"
#include "core/object/object.h"
class BTAlwaysFail : public BTDecorator { class BTAlwaysFail : public BTDecorator {
GDCLASS(BTAlwaysFail, BTDecorator); GDCLASS(BTAlwaysFail, BTDecorator);

View File

@ -12,9 +12,7 @@
#ifndef BT_ALWAYS_SUCCEED_H #ifndef BT_ALWAYS_SUCCEED_H
#define BT_ALWAYS_SUCCEED_H #define BT_ALWAYS_SUCCEED_H
#include "bt_decorator.h" #include "../bt_decorator.h"
#include "core/object/object.h"
class BTAlwaysSucceed : public BTDecorator { class BTAlwaysSucceed : public BTDecorator {
GDCLASS(BTAlwaysSucceed, BTDecorator); GDCLASS(BTAlwaysSucceed, BTDecorator);

View File

@ -12,9 +12,8 @@
#ifndef BT_COOLDOWN_H #ifndef BT_COOLDOWN_H
#define BT_COOLDOWN_H #define BT_COOLDOWN_H
#include "bt_decorator.h" #include "../bt_decorator.h"
#include "core/object/object.h"
#include "scene/main/scene_tree.h" #include "scene/main/scene_tree.h"
class BTCooldown : public BTDecorator { class BTCooldown : public BTDecorator {

View File

@ -12,9 +12,7 @@
#ifndef BT_DELAY_H #ifndef BT_DELAY_H
#define BT_DELAY_H #define BT_DELAY_H
#include "bt_decorator.h" #include "../bt_decorator.h"
#include "core/object/object.h"
class BTDelay : public BTDecorator { class BTDelay : public BTDecorator {
GDCLASS(BTDelay, BTDecorator); GDCLASS(BTDelay, BTDecorator);

View File

@ -12,9 +12,7 @@
#ifndef BT_FOR_EACH_H #ifndef BT_FOR_EACH_H
#define BT_FOR_EACH_H #define BT_FOR_EACH_H
#include "bt_decorator.h" #include "../bt_decorator.h"
#include "core/object/object.h"
class BTForEach : public BTDecorator { class BTForEach : public BTDecorator {
GDCLASS(BTForEach, BTDecorator); GDCLASS(BTForEach, BTDecorator);

View File

@ -12,9 +12,7 @@
#ifndef BT_INVERT_H #ifndef BT_INVERT_H
#define BT_INVERT_H #define BT_INVERT_H
#include "bt_decorator.h" #include "../bt_decorator.h"
#include "core/object/object.h"
class BTInvert : public BTDecorator { class BTInvert : public BTDecorator {
GDCLASS(BTInvert, BTDecorator); GDCLASS(BTInvert, BTDecorator);

View File

@ -12,9 +12,7 @@
#ifndef BT_NEW_SCOPE_H #ifndef BT_NEW_SCOPE_H
#define BT_NEW_SCOPE_H #define BT_NEW_SCOPE_H
#include "bt_decorator.h" #include "../bt_decorator.h"
#include "core/object/object.h"
class BTNewScope : public BTDecorator { class BTNewScope : public BTDecorator {
GDCLASS(BTNewScope, BTDecorator); GDCLASS(BTNewScope, BTDecorator);

View File

@ -12,7 +12,7 @@
#ifndef BT_PROBABILITY_H #ifndef BT_PROBABILITY_H
#define BT_PROBABILITY_H #define BT_PROBABILITY_H
#include "bt_decorator.h" #include "../bt_decorator.h"
class BTProbability : public BTDecorator { class BTProbability : public BTDecorator {
GDCLASS(BTProbability, BTDecorator); GDCLASS(BTProbability, BTDecorator);

View File

@ -12,9 +12,7 @@
#ifndef BT_REPEAT_H #ifndef BT_REPEAT_H
#define BT_REPEAT_H #define BT_REPEAT_H
#include "bt_decorator.h" #include "../bt_decorator.h"
#include "core/object/object.h"
class BTRepeat : public BTDecorator { class BTRepeat : public BTDecorator {
GDCLASS(BTRepeat, BTDecorator); GDCLASS(BTRepeat, BTDecorator);

View File

@ -12,9 +12,7 @@
#ifndef BT_REPEAT_UNTIL_FAILURE_H #ifndef BT_REPEAT_UNTIL_FAILURE_H
#define BT_REPEAT_UNTIL_FAILURE_H #define BT_REPEAT_UNTIL_FAILURE_H
#include "bt_decorator.h" #include "../bt_decorator.h"
#include "core/object/object.h"
class BTRepeatUntilFailure : public BTDecorator { class BTRepeatUntilFailure : public BTDecorator {
GDCLASS(BTRepeatUntilFailure, BTDecorator); GDCLASS(BTRepeatUntilFailure, BTDecorator);

View File

@ -12,9 +12,7 @@
#ifndef BT_REPEAT_UNTIL_SUCCESS_H #ifndef BT_REPEAT_UNTIL_SUCCESS_H
#define BT_REPEAT_UNTIL_SUCCESS_H #define BT_REPEAT_UNTIL_SUCCESS_H
#include "bt_decorator.h" #include "../bt_decorator.h"
#include "core/object/object.h"
class BTRepeatUntilSuccess : public BTDecorator { class BTRepeatUntilSuccess : public BTDecorator {
GDCLASS(BTRepeatUntilSuccess, BTDecorator); GDCLASS(BTRepeatUntilSuccess, BTDecorator);

View File

@ -12,7 +12,7 @@
#ifndef BT_RUN_LIMIT_H #ifndef BT_RUN_LIMIT_H
#define BT_RUN_LIMIT_H #define BT_RUN_LIMIT_H
#include "bt_decorator.h" #include "../bt_decorator.h"
class BTRunLimit : public BTDecorator { class BTRunLimit : public BTDecorator {
GDCLASS(BTRunLimit, BTDecorator); GDCLASS(BTRunLimit, BTDecorator);

View File

@ -11,12 +11,8 @@
#include "bt_subtree.h" #include "bt_subtree.h"
#include "bt_new_scope.h"
#include "modules/limboai/blackboard/blackboard.h" #include "modules/limboai/blackboard/blackboard.h"
#include "modules/limboai/bt/actions/bt_action.h"
#include "modules/limboai/bt/actions/bt_fail.h"
#include "modules/limboai/bt/bt_task.h"
#include "modules/limboai/bt/decorators/bt_decorator.h"
#include "modules/limboai/bt/decorators/bt_new_scope.h"
#include "core/config/engine.h" #include "core/config/engine.h"
#include "core/error/error_macros.h" #include "core/error/error_macros.h"

View File

@ -12,9 +12,7 @@
#ifndef BT_TIME_LIMIT_H #ifndef BT_TIME_LIMIT_H
#define BT_TIME_LIMIT_H #define BT_TIME_LIMIT_H
#include "bt_decorator.h" #include "../bt_decorator.h"
#include "core/object/object.h"
class BTTimeLimit : public BTDecorator { class BTTimeLimit : public BTDecorator {
GDCLASS(BTTimeLimit, BTDecorator); GDCLASS(BTTimeLimit, BTDecorator);

View File

@ -12,9 +12,7 @@
#ifndef BEHAVIOR_TREE_DATA_H #ifndef BEHAVIOR_TREE_DATA_H
#define BEHAVIOR_TREE_DATA_H #define BEHAVIOR_TREE_DATA_H
#include "modules/limboai/bt/bt_task.h" #include "modules/limboai/bt/tasks/bt_task.h"
#include "core/object/object.h"
class BehaviorTreeData { class BehaviorTreeData {
public: public:

View File

@ -12,8 +12,9 @@
#ifdef TOOLS_ENABLED #ifdef TOOLS_ENABLED
#include "behavior_tree_view.h" #include "behavior_tree_view.h"
#include "behavior_tree_data.h" #include "behavior_tree_data.h"
#include "modules/limboai/bt/bt_task.h" #include "modules/limboai/bt/tasks/bt_task.h"
#include "modules/limboai/util/limbo_utility.h" #include "modules/limboai/util/limbo_utility.h"
#include "core/math/color.h" #include "core/math/color.h"

View File

@ -12,7 +12,7 @@
#include "limbo_debugger.h" #include "limbo_debugger.h"
#include "behavior_tree_data.h" #include "behavior_tree_data.h"
#include "modules/limboai/bt/bt_task.h" #include "modules/limboai/bt/tasks/bt_task.h"
#include "core/debugger/engine_debugger.h" #include "core/debugger/engine_debugger.h"
#include "core/error/error_macros.h" #include "core/error/error_macros.h"

View File

@ -12,7 +12,7 @@
#ifndef LIMBO_DEBUGGER_H #ifndef LIMBO_DEBUGGER_H
#define LIMBO_DEBUGGER_H #define LIMBO_DEBUGGER_H
#include "modules/limboai/bt/bt_task.h" #include "modules/limboai/bt/tasks/bt_task.h"
#include "core/object/class_db.h" #include "core/object/class_db.h"
#include "core/object/object.h" #include "core/object/object.h"

View File

@ -13,12 +13,12 @@
#include "limbo_ai_editor_plugin.h" #include "limbo_ai_editor_plugin.h"
#include "modules/limboai/bt/actions/bt_action.h"
#include "modules/limboai/bt/behavior_tree.h" #include "modules/limboai/bt/behavior_tree.h"
#include "modules/limboai/bt/bt_task.h" #include "modules/limboai/bt/tasks/bt_action.h"
#include "modules/limboai/bt/composites/bt_parallel.h" #include "modules/limboai/bt/tasks/bt_task.h"
#include "modules/limboai/bt/composites/bt_selector.h" #include "modules/limboai/bt/tasks/composites/bt_parallel.h"
#include "modules/limboai/bt/composites/bt_sequence.h" #include "modules/limboai/bt/tasks/composites/bt_selector.h"
#include "modules/limboai/bt/tasks/composites/bt_sequence.h"
#include "modules/limboai/editor/debugger/limbo_debugger_plugin.h" #include "modules/limboai/editor/debugger/limbo_debugger_plugin.h"
#include "modules/limboai/util/limbo_utility.h" #include "modules/limboai/util/limbo_utility.h"

View File

@ -14,7 +14,7 @@
#define LIMBO_AI_EDITOR_PLUGIN_H #define LIMBO_AI_EDITOR_PLUGIN_H
#include "modules/limboai/bt/behavior_tree.h" #include "modules/limboai/bt/behavior_tree.h"
#include "modules/limboai/bt/bt_task.h" #include "modules/limboai/bt/tasks/bt_task.h"
#include "core/object/class_db.h" #include "core/object/class_db.h"
#include "core/object/object.h" #include "core/object/object.h"

View File

@ -44,50 +44,50 @@
#include "blackboard/bb_param/bb_vector4.h" #include "blackboard/bb_param/bb_vector4.h"
#include "blackboard/bb_param/bb_vector4i.h" #include "blackboard/bb_param/bb_vector4i.h"
#include "blackboard/blackboard.h" #include "blackboard/blackboard.h"
#include "bt/actions/bt_action.h"
#include "bt/actions/bt_await_animation.h"
#include "bt/actions/bt_call_method.h"
#include "bt/actions/bt_console_print.h"
#include "bt/actions/bt_fail.h"
#include "bt/actions/bt_pause_animation.h"
#include "bt/actions/bt_play_animation.h"
#include "bt/actions/bt_random_wait.h"
#include "bt/actions/bt_set_agent_property.h"
#include "bt/actions/bt_set_var.h"
#include "bt/actions/bt_stop_animation.h"
#include "bt/actions/bt_wait.h"
#include "bt/actions/bt_wait_ticks.h"
#include "bt/behavior_tree.h" #include "bt/behavior_tree.h"
#include "bt/bt_player.h" #include "bt/bt_player.h"
#include "bt/bt_state.h" #include "bt/bt_state.h"
#include "bt/bt_task.h" #include "bt/tasks/actions/bt_await_animation.h"
#include "bt/composites/bt_composite.h" #include "bt/tasks/actions/bt_call_method.h"
#include "bt/composites/bt_dynamic_selector.h" #include "bt/tasks/actions/bt_console_print.h"
#include "bt/composites/bt_dynamic_sequence.h" #include "bt/tasks/actions/bt_fail.h"
#include "bt/composites/bt_parallel.h" #include "bt/tasks/actions/bt_pause_animation.h"
#include "bt/composites/bt_random_selector.h" #include "bt/tasks/actions/bt_play_animation.h"
#include "bt/composites/bt_random_sequence.h" #include "bt/tasks/actions/bt_random_wait.h"
#include "bt/composites/bt_selector.h" #include "bt/tasks/actions/bt_set_agent_property.h"
#include "bt/composites/bt_sequence.h" #include "bt/tasks/actions/bt_set_var.h"
#include "bt/conditions/bt_check_agent_property.h" #include "bt/tasks/actions/bt_stop_animation.h"
#include "bt/conditions/bt_check_trigger.h" #include "bt/tasks/actions/bt_wait.h"
#include "bt/conditions/bt_check_var.h" #include "bt/tasks/actions/bt_wait_ticks.h"
#include "bt/conditions/bt_condition.h" #include "bt/tasks/bt_action.h"
#include "bt/decorators/bt_always_fail.h" #include "bt/tasks/bt_composite.h"
#include "bt/decorators/bt_always_succeed.h" #include "bt/tasks/bt_condition.h"
#include "bt/decorators/bt_cooldown.h" #include "bt/tasks/bt_decorator.h"
#include "bt/decorators/bt_decorator.h" #include "bt/tasks/bt_task.h"
#include "bt/decorators/bt_delay.h" #include "bt/tasks/composites/bt_dynamic_selector.h"
#include "bt/decorators/bt_for_each.h" #include "bt/tasks/composites/bt_dynamic_sequence.h"
#include "bt/decorators/bt_invert.h" #include "bt/tasks/composites/bt_parallel.h"
#include "bt/decorators/bt_new_scope.h" #include "bt/tasks/composites/bt_random_selector.h"
#include "bt/decorators/bt_probability.h" #include "bt/tasks/composites/bt_random_sequence.h"
#include "bt/decorators/bt_repeat.h" #include "bt/tasks/composites/bt_selector.h"
#include "bt/decorators/bt_repeat_until_failure.h" #include "bt/tasks/composites/bt_sequence.h"
#include "bt/decorators/bt_repeat_until_success.h" #include "bt/tasks/conditions/bt_check_agent_property.h"
#include "bt/decorators/bt_run_limit.h" #include "bt/tasks/conditions/bt_check_trigger.h"
#include "bt/decorators/bt_subtree.h" #include "bt/tasks/conditions/bt_check_var.h"
#include "bt/decorators/bt_time_limit.h" #include "bt/tasks/decorators/bt_always_fail.h"
#include "bt/tasks/decorators/bt_always_succeed.h"
#include "bt/tasks/decorators/bt_cooldown.h"
#include "bt/tasks/decorators/bt_delay.h"
#include "bt/tasks/decorators/bt_for_each.h"
#include "bt/tasks/decorators/bt_invert.h"
#include "bt/tasks/decorators/bt_new_scope.h"
#include "bt/tasks/decorators/bt_probability.h"
#include "bt/tasks/decorators/bt_repeat.h"
#include "bt/tasks/decorators/bt_repeat_until_failure.h"
#include "bt/tasks/decorators/bt_repeat_until_success.h"
#include "bt/tasks/decorators/bt_run_limit.h"
#include "bt/tasks/decorators/bt_subtree.h"
#include "bt/tasks/decorators/bt_time_limit.h"
#include "editor/debugger/limbo_debugger.h" #include "editor/debugger/limbo_debugger.h"
#include "hsm/limbo_hsm.h" #include "hsm/limbo_hsm.h"
#include "hsm/limbo_state.h" #include "hsm/limbo_state.h"

View File

@ -11,7 +11,7 @@
#include "limbo_utility.h" #include "limbo_utility.h"
#include "modules/limboai/bt/bt_task.h" #include "modules/limboai/bt/tasks/bt_task.h"
#include "core/variant/variant.h" #include "core/variant/variant.h"
#include "scene/resources/texture.h" #include "scene/resources/texture.h"

View File

@ -12,8 +12,9 @@
#ifndef LIMBO_UTILITY_H #ifndef LIMBO_UTILITY_H
#define LIMBO_UTILITY_H #define LIMBO_UTILITY_H
#include "core/object/class_db.h"
#include "core/object/object.h" #include "core/object/object.h"
#include "core/object/class_db.h"
#include "core/variant/variant.h" #include "core/variant/variant.h"
#include "scene/resources/texture.h" #include "scene/resources/texture.h"