chore: formatted state.cpp

This commit is contained in:
Sara 2025-03-14 14:21:52 +01:00
parent c4dc10de90
commit 4178c08102

View file

@ -22,13 +22,13 @@ void State::_process(double) {
}
void State::interrupt_state() {
gd::UtilityFunctions::print("!!! ", this->get_path(), " interrupt_state");
gd::UtilityFunctions::print("!!! ", this->get_path(), " interrupt_state");
this->_end_state();
this->queue_free();
}
void State::end_state() {
gd::UtilityFunctions::print("!!! ", this->get_path(), " end_state");
gd::UtilityFunctions::print("!!! ", this->get_path(), " end_state");
this->interrupt_state();
this->emit_signal(this->is_action_done() ? "state_finished" : "state_failed");
this->emit_signal("end_state");
@ -47,4 +47,4 @@ bool State::is_action_done() const {
bool State::is_action_done_interrupt() const {
return this->is_action_done() && !this->action->get_require_state_complete();
}
}
} //namespace goap