Enemies and now using the GOAP AI to decide when to attack the player, but it's very rough right now. I need to sort out how to store the AI states and use them in the System.
This commit is contained in:
parent
77f2e94515
commit
ad71631809
13 changed files with 61 additions and 30 deletions
|
@ -222,7 +222,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);
|
||||
dump_script("\n\n\n-----WALKER SCRIPT", start, a_plan.script);
|
||||
ai::dump_script("\n\n\n-----WALKER SCRIPT", start, a_plan.script);
|
||||
auto action = a_plan.script.front();
|
||||
|
||||
if(action.name == "find_enemy") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue