Now it will path to enemies, then devices, then items but it does get stuck on stuff like devices.

This commit is contained in:
Zed A. Shaw 2025-02-27 03:02:28 -05:00
parent 87e1c25cd5
commit cdb930a7f2
2 changed files with 27 additions and 14 deletions

View file

@ -4,6 +4,8 @@
struct Autowalker {
int enemy_count = 0;
int item_count = 0;
int device_count = 0;
gui::FSM& fsm;
Autowalker(gui::FSM& fsm)
@ -12,7 +14,6 @@ struct Autowalker {
void autowalk();
void start_autowalk();
void send_event(gui::Event ev);
Pathing compute_paths();
void window_events();
void process_combat();
bool path_player(Pathing& paths, Point &target_out);
@ -20,4 +21,7 @@ struct Autowalker {
void rotate_player(Point current, Point target);
bool player_has_moved(Point target);
void process_move();
Pathing path_to_enemies();
Pathing path_to_items();
Pathing path_to_devices();
};