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

CPathfinder: move guard checks into functions

This commit is contained in:
ArseniyShestakov
2015-10-12 08:13:10 +03:00
parent cd7c5acbc4
commit 1beacf2260
2 changed files with 46 additions and 14 deletions

View File

@@ -307,6 +307,11 @@ private:
void initializeGraph();
bool isMovementPossible(); //checks if current move will be between sea<->land. If so, checks it legality (returns false if movement is not possible) and sets useEmbarkCost
int3 getSourceGuardPosition();
bool isSourceGuarded();
bool isDestinationGuarded();
bool isDestinationGuardian();
void getNeighbours(const int3 &coord);
void getTeleportExits(bool noTeleportExcludes = false);