Gave up on trying to get the GOAP algorithm to correctly apply the cost structure to competing choices, and instead I take the resulting action list and simply find the next best one based on cost.
This commit is contained in:
parent
52f45e1d45
commit
c014e65c13
11 changed files with 43 additions and 30 deletions
2
ai.hpp
2
ai.hpp
|
@ -23,6 +23,7 @@ namespace ai {
|
|||
EntityAI() {};
|
||||
|
||||
bool wants_to(std::string name);
|
||||
ai::Action& best_fit();
|
||||
|
||||
bool active();
|
||||
|
||||
|
@ -58,6 +59,5 @@ namespace ai {
|
|||
ActionPlan plan(std::string script_name, State start, State goal);
|
||||
|
||||
/* Mostly used for debugging and validation. */
|
||||
AIProfile* profile();
|
||||
void check_valid_action(std::string name, std::string msg);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue