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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user