AI now follows the A* algorithm more closely by using a separate priority queue from the open_set.
This commit is contained in:
parent
72951f308f
commit
922fbeba0e
9 changed files with 72 additions and 75 deletions
2
goap.hpp
2
goap.hpp
|
@ -11,7 +11,7 @@ namespace ai {
|
|||
// ZED: I don't know if this is the best place for this
|
||||
using AIProfile = std::unordered_map<std::string, int>;
|
||||
|
||||
constexpr const int SCORE_MAX = std::numeric_limits<int>::max();
|
||||
constexpr const int SCORE_MAX = std::numeric_limits<int>::max() / 2;
|
||||
|
||||
constexpr const size_t STATE_MAX = 32;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue