1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

CPathfinder: turn checkDestinationTile into function

This code was only kept as lamba to access guard related variables that is now gone.
This commit is contained in:
ArseniyShestakov
2015-10-12 08:22:31 +03:00
parent 1beacf2260
commit 213d8c2258
2 changed files with 18 additions and 16 deletions

View File

@@ -315,6 +315,8 @@ private:
void getNeighbours(const int3 &coord);
void getTeleportExits(bool noTeleportExcludes = false);
bool checkDestinationTile();
CGPathNode::EAccessibility evaluateAccessibility(const TerrainTile *tinfo) const;
bool canMoveBetween(const int3 &a, const int3 &b) const; //checks only for visitable objects that may make moving between tiles impossible, not other conditions (like tiles itself accessibility)