AI engine is working and I have a little BattleEngine going but the AI is working better than it should in systems.cpp. Need to find out why then make the BattleEngine avoid running entities that have END in action lists.
This commit is contained in:
parent
da273cbee6
commit
47c6bfd531
13 changed files with 131 additions and 27 deletions
|
@ -220,7 +220,7 @@ void Autowalker::handle_boss_fight() {
|
|||
|
||||
void Autowalker::handle_player_walk(ai::State& start, ai::State& goal) {
|
||||
start = update_state(start);
|
||||
auto a_plan = ai::plan("Walker::actions", start, goal);
|
||||
auto a_plan = ai::plan("Host::actions", start, goal);
|
||||
auto action = a_plan.script.front();
|
||||
|
||||
if(action.name == "find_enemy") {
|
||||
|
@ -269,8 +269,8 @@ void Autowalker::autowalk() {
|
|||
|
||||
int move_attempts = 0;
|
||||
|
||||
auto start = ai::load_state("Walker::initial_state");
|
||||
auto goal = ai::load_state("Walker::final_state");
|
||||
auto start = ai::load_state("Host::initial_state");
|
||||
auto goal = ai::load_state("Host::final_state");
|
||||
|
||||
do {
|
||||
handle_window_events();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue