Autowalker is now using the GOAP AI system and works way better. Still quite a lot of jank in the code but that'll get removed over time. Next thing is being able to detect when its near an item/enemy and properly react.

This commit is contained in:
Zed A. Shaw 2025-03-12 12:15:21 -04:00
parent ff81c78d13
commit d15c9b12fd
9 changed files with 84 additions and 47 deletions

View file

@ -22,7 +22,7 @@ namespace ai {
}
void dump_action(AIProfile& profile, Action& action) {
fmt::println(" --ACTION: {}, cost={}", action.$name, action.$cost);
fmt::println(" --ACTION: {}, cost={}", action.name, action.cost);
fmt::println(" PRECONDS:");
dump_only(profile, action.$positive_preconds, true, true);
@ -39,7 +39,7 @@ namespace ai {
dump_state(profile, start);
fmt::print("% ACTIONS PLANNED:");
for(auto& action : script) {
fmt::print("{} ", action.$name);
fmt::print("{} ", action.name);
}
fmt::print("\n");