chore: removed debug prints from unit.cpp
This commit is contained in:
parent
42dde85dd7
commit
b38f134232
|
@ -45,7 +45,6 @@ void Unit::_physics_process(double) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Unit::stop_plan() {
|
void Unit::stop_plan() {
|
||||||
gd::UtilityFunctions::print("!!! ", this->get_path(), " stop_plan");
|
|
||||||
this->current_goal.unref();
|
this->current_goal.unref();
|
||||||
this->current_plan.clear();
|
this->current_plan.clear();
|
||||||
this->destroy_state();
|
this->destroy_state();
|
||||||
|
@ -72,7 +71,6 @@ void Unit::begin_marker_temporary(GoalMarker *marker) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Unit::set_target_goal(gd::Node3D *target, gd::Ref<goap::Goal> goal) {
|
void Unit::set_target_goal(gd::Node3D *target, gd::Ref<goap::Goal> goal) {
|
||||||
gd::UtilityFunctions::print("!!! ", this->get_path(), " set_target_goal");
|
|
||||||
this->destroy_state();
|
this->destroy_state();
|
||||||
this->world_state->set_target_node(target);
|
this->world_state->set_target_node(target);
|
||||||
this->begin_goal(goal);
|
this->begin_goal(goal);
|
||||||
|
@ -98,7 +96,6 @@ void Unit::aim_at(gd::Node3D *target) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Unit::on_unconscious(Unit *damage_source) {
|
void Unit::on_unconscious(Unit *damage_source) {
|
||||||
gd::UtilityFunctions::print("!!! ", this->get_path(), " on_unconscious");
|
|
||||||
this->destroy_state();
|
this->destroy_state();
|
||||||
this->emit_signal("plan_failed");
|
this->emit_signal("plan_failed");
|
||||||
this->anim_player->stop();
|
this->anim_player->stop();
|
||||||
|
@ -106,7 +103,6 @@ void Unit::on_unconscious(Unit *damage_source) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Unit::on_death(Unit *damage_source) {
|
void Unit::on_death(Unit *damage_source) {
|
||||||
gd::UtilityFunctions::print("!!! ", this->get_path(), " on_death");
|
|
||||||
this->destroy_state();
|
this->destroy_state();
|
||||||
this->emit_signal("plan_failed");
|
this->emit_signal("plan_failed");
|
||||||
if(this->anim_player->get_current_animation() != gd::StringName("death")) {
|
if(this->anim_player->get_current_animation() != gd::StringName("death")) {
|
||||||
|
@ -126,7 +122,6 @@ void Unit::on_velocity_computed(gd::Vector3 vel) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Unit::destroy_state() {
|
void Unit::destroy_state() {
|
||||||
gd::UtilityFunctions::print("!!! ", this->get_path(), " destroy_state");
|
|
||||||
if(this->state == nullptr)
|
if(this->state == nullptr)
|
||||||
return;
|
return;
|
||||||
if(!this->state->is_queued_for_deletion())
|
if(!this->state->is_queued_for_deletion())
|
||||||
|
|
Loading…
Reference in a new issue