Fixed oscillating around end position
This commit is contained in:
parent
5ccd7d0c13
commit
e1f23f67a2
2 changed files with 17 additions and 7 deletions
|
@ -43,13 +43,16 @@ private:
|
|||
|
||||
std::shared_ptr<Entity> entity;
|
||||
|
||||
State targetState;
|
||||
EntityType targetType;
|
||||
const State targetState;
|
||||
const EntityType targetType;
|
||||
|
||||
const std::vector<std::shared_ptr<Entity>>& entities;
|
||||
const std::vector<pro_maat::GridPos>& occupiedSquares;
|
||||
|
||||
const pro_maat::GridPos& mapSize;
|
||||
|
||||
pro_maat::GridPos previousPosition;
|
||||
pro_maat::GridPos previousTarget;
|
||||
};
|
||||
|
||||
#endif //PROJECT_MAAT_RULES_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue