Fixed oscillating around end position

This commit is contained in:
trotFunky 2019-06-10 19:14:43 +02:00
parent 5ccd7d0c13
commit e1f23f67a2
2 changed files with 17 additions and 7 deletions

View file

@ -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