feat: defined state and state machine concepts
This commit is contained in:
parent
7c0b338f68
commit
7c4c75d193
5 changed files with 124 additions and 0 deletions
16
modules/wave_survival/state.cpp
Normal file
16
modules/wave_survival/state.cpp
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#include "state.h"
|
||||
|
||||
void State::_bind_methods() {
|
||||
}
|
||||
|
||||
String State::get_next_state() const {
|
||||
return this->get_class();
|
||||
}
|
||||
|
||||
void State::set_state_machine(StateMachine *machine) {
|
||||
this->state_machine = machine;
|
||||
}
|
||||
|
||||
StateMachine *State::get_state_machine() const {
|
||||
return this->state_machine;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue