mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
TerrainTile: implement exclusion for topVisitable functions
For pathfinder we usually want to check what object hero staying on. Hero is always top object so we need option to exclude it.
This commit is contained in:
@@ -289,8 +289,8 @@ struct DLL_LINKAGE TerrainTile
|
||||
/// Checks for blocking objects and terraint type (water / land).
|
||||
bool isClear(const TerrainTile * from = nullptr) const;
|
||||
/// Gets the ID of the top visitable object or -1 if there is none.
|
||||
int topVisitableId() const;
|
||||
CGObjectInstance * topVisitableObj() const;
|
||||
Obj topVisitableId(bool excludeTop = false) const;
|
||||
CGObjectInstance * topVisitableObj(bool excludeTop = false) const;
|
||||
bool isWater() const;
|
||||
bool isCoastal() const;
|
||||
bool hasFavourableWinds() const;
|
||||
|
||||
Reference in New Issue
Block a user