Added representation of occupied squares and a way to retrieve them for A* implementation
Updated UML
This commit is contained in:
parent
d53f8b32e9
commit
1a79679c21
6 changed files with 95 additions and 5 deletions
|
@ -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);
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue