Added representation of occupied squares and a way to retrieve them for A* implementation

Updated UML
This commit is contained in:
Teo-CD 2019-06-08 02:32:06 +02:00
parent d53f8b32e9
commit 1a79679c21
6 changed files with 95 additions and 5 deletions

View file

@ -28,6 +28,14 @@ private:
std::vector<Entity> entities;
const TextureStore& textures;
//
// Pathfinding
//
std::vector<std::pair<uint8_t,uint8_t>> occupiedSquares;
Orientation findPath(sf::Vector2i start, sf::Vector2i end, int sign);
};