Move the map opened detect out to the class.
This commit is contained in:
parent
c4ed26184b
commit
78ba83e916
2 changed files with 1 additions and 1 deletions
|
@ -266,7 +266,6 @@ void Autowalker::autowalk() {
|
||||||
}
|
}
|
||||||
|
|
||||||
int move_attempts = 0;
|
int move_attempts = 0;
|
||||||
bool map_opened_once = false;
|
|
||||||
|
|
||||||
auto start = ai::load_state("Host::initial_state");
|
auto start = ai::load_state("Host::initial_state");
|
||||||
auto goal = ai::load_state("Host::final_state");
|
auto goal = ai::load_state("Host::final_state");
|
||||||
|
|
|
@ -9,6 +9,7 @@ struct Autowalker {
|
||||||
int enemy_count = 0;
|
int enemy_count = 0;
|
||||||
int item_count = 0;
|
int item_count = 0;
|
||||||
int device_count = 0;
|
int device_count = 0;
|
||||||
|
bool map_opened_once = false;
|
||||||
gui::FSM& fsm;
|
gui::FSM& fsm;
|
||||||
|
|
||||||
Autowalker(gui::FSM& fsm)
|
Autowalker(gui::FSM& fsm)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue