AI can now walk to where healing items are and pick them up to use.
This commit is contained in:
parent
fe37aa11df
commit
a2192e25eb
2 changed files with 31 additions and 8 deletions
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
#include "ai.hpp"
|
||||
|
||||
#include "gui/fsm.hpp"
|
||||
#include <guecs/ui.hpp>
|
||||
|
||||
struct InventoryStats;
|
||||
|
||||
|
@ -29,7 +29,7 @@ struct Autowalker {
|
|||
void handle_boss_fight();
|
||||
void handle_player_walk(ai::State& start, ai::State& goal);
|
||||
|
||||
void send_event(gui::Event ev);
|
||||
void send_event(gui::Event ev, std::any data={});
|
||||
void process_combat();
|
||||
bool process_move(Pathing& paths, std::function<bool(Point)> cb);
|
||||
bool path_player(Pathing& paths, Point &target_out);
|
||||
|
@ -49,4 +49,6 @@ struct Autowalker {
|
|||
void face_target(Point target);
|
||||
bool face_enemy();
|
||||
void pickup_item();
|
||||
void pocket_potion(GameDB::Level &level);
|
||||
void click_inventory(const std::string& name, guecs::Modifiers mods);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue