1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Corrected road generation - they will be straight whenever possible.

This commit is contained in:
DjWarmonger
2016-12-15 12:36:47 +01:00
parent f18d3d9844
commit 4102546977
3 changed files with 41 additions and 19 deletions

View File

@@ -69,6 +69,7 @@ public:
void findZonesForQuestArts();
void foreach_neighbour(const int3 &pos, std::function<void(int3& pos)> foo);
void foreachDirectNeighbour(const int3 &pos, std::function<void(int3& pos)> foo);
void foreachDiagonaltNeighbour(const int3& pos, std::function<void(int3& pos)> foo);
bool isBlocked(const int3 &tile) const;
bool shouldBeBlocked(const int3 &tile) const;