Autowalker is working way better and now I have a plan for using the AI in the System.

This commit is contained in:
Zed A. Shaw 2025-03-13 13:44:42 -04:00
parent 0623170dbc
commit ee804581a8
11 changed files with 197 additions and 127 deletions

View file

@ -1,7 +1,10 @@
#pragma once
#include "ai.hpp"
#include "gui_fsm.hpp"
struct InventoryStats;
struct Autowalker {
int enemy_count = 0;
int item_count = 0;
@ -13,10 +16,15 @@ struct Autowalker {
void autowalk();
void start_autowalk();
void handle_window_events();
void handle_boss_fight();
void handle_player_walk(ai::State& start, ai::State& goal);
void send_event(gui::Event ev);
void window_events();
void process_combat();
bool path_player(Pathing& paths, Point &target_out);
void path_fail(Matrix& bad_paths, Point pos);
Point get_current_position();
void rotate_player(Point current, Point target);
void process_move(Pathing& paths);
@ -24,7 +32,9 @@ struct Autowalker {
void status(std::string msg);
void close_status();
bool player_health_good();
int player_item_count();
void player_use_healing();
InventoryStats player_item_count();
ai::State update_state(ai::State start);
Pathing path_to_enemies();
Pathing path_to_items();