BREAKING: First idea for the combat system but there's a bug in goap where I'm not removing closed parts or something like that.
This commit is contained in:
parent
75db188dc6
commit
63f032ff12
8 changed files with 130 additions and 4 deletions
2
goap.cpp
2
goap.cpp
|
|
@ -66,7 +66,7 @@ namespace ai {
|
|||
|
||||
inline int h(State start, State goal, Action& action) {
|
||||
(void)action; // not sure if cost goes here or on d()
|
||||
return distance_to_goal(start, goal);
|
||||
return distance_to_goal(start, goal) + action.cost;
|
||||
}
|
||||
|
||||
inline int d(State start, State goal, Action& action) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue