Mostly fixed up but I have to figure out why cost on actions isn't changing the priority.
This commit is contained in:
parent
862d8b4d81
commit
52f45e1d45
5 changed files with 17 additions and 29 deletions
2
goap.hpp
2
goap.hpp
|
@ -58,6 +58,8 @@ namespace ai {
|
|||
ActionState(Action action, State state) :
|
||||
action(action), state(state) {}
|
||||
|
||||
ActionState() : action(FINAL_ACTION), state(0) {}
|
||||
|
||||
bool operator==(const ActionState& other) const {
|
||||
return other.action == action && other.state == state;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue