From a946f7f39bf5a6d9ae63111097bd69b64795e88c Mon Sep 17 00:00:00 2001 From: Sara Date: Wed, 19 Jun 2024 10:59:19 +0200 Subject: [PATCH] feat: renamed get_target_dead to get_is_target_dead --- src/unit_world_state.cpp | 4 ++-- src/unit_world_state.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/unit_world_state.cpp b/src/unit_world_state.cpp index 62e42a1..fb88791 100644 --- a/src/unit_world_state.cpp +++ b/src/unit_world_state.cpp @@ -11,7 +11,7 @@ void UnitWorldState::_bind_methods() { #define CLASSNAME UnitWorldState GDSIGNAL("attention_changed"); GDFUNCTION(get_can_see_target); - GDFUNCTION(get_target_dead); + GDFUNCTION(get_is_target_dead); GDFUNCTION(get_is_at_target); GDFUNCTION(get_target_node); } @@ -38,7 +38,7 @@ bool UnitWorldState::get_is_at_target() const { return (target - current).length_squared() < min_dist * min_dist; } -bool UnitWorldState::get_target_dead() const { +bool UnitWorldState::get_is_target_dead() const { return false; } diff --git a/src/unit_world_state.hpp b/src/unit_world_state.hpp index ae7308f..9f2ba29 100644 --- a/src/unit_world_state.hpp +++ b/src/unit_world_state.hpp @@ -2,7 +2,7 @@ #define UNIT_WORLD_STATE_HPP #include "goap/actor_world_state.hpp" -#include "godot_cpp/classes/navigation_agent3d.hpp" +#include #include class Unit; @@ -14,7 +14,7 @@ public: virtual void _enter_tree() override; bool get_can_see_target() const; bool get_is_at_target() const; - bool get_target_dead() const; + bool get_is_target_dead() const; void set_target_node(gd::Node3D *node); gd::Node3D *get_target_node() const;