Better structure on the autowalker, but still gets stuck in some combat situations. Next is after we kill everything we head to the exit.
This commit is contained in:
parent
e6c225f1c8
commit
87e1c25cd5
6 changed files with 112 additions and 33 deletions
|
@ -3,6 +3,7 @@
|
|||
#include "gui_fsm.hpp"
|
||||
|
||||
struct Autowalker {
|
||||
int enemy_count = 0;
|
||||
gui::FSM& fsm;
|
||||
|
||||
Autowalker(gui::FSM& fsm)
|
||||
|
@ -10,4 +11,13 @@ 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);
|
||||
Point get_current_position();
|
||||
void rotate_player(Point current, Point target);
|
||||
bool player_has_moved(Point target);
|
||||
void process_move();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue