mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Cartographer/Observatory is now configurable object
This commit is contained in:
@@ -155,9 +155,14 @@ bool TerrainType::isWater() const
|
||||
return passabilityType & PassabilityType::WATER;
|
||||
}
|
||||
|
||||
bool TerrainType::isRock() const
|
||||
{
|
||||
return passabilityType & PassabilityType::ROCK;
|
||||
}
|
||||
|
||||
bool TerrainType::isPassable() const
|
||||
{
|
||||
return !(passabilityType & PassabilityType::ROCK);
|
||||
return !isRock();
|
||||
}
|
||||
|
||||
bool TerrainType::isSurface() const
|
||||
@@ -170,16 +175,6 @@ bool TerrainType::isUnderground() const
|
||||
return passabilityType & PassabilityType::SUBTERRANEAN;
|
||||
}
|
||||
|
||||
bool TerrainType::isSurfaceCartographerCompatible() const
|
||||
{
|
||||
return isSurface();
|
||||
}
|
||||
|
||||
bool TerrainType::isUndergroundCartographerCompatible() const
|
||||
{
|
||||
return isLand() && isPassable() && !isSurface();
|
||||
}
|
||||
|
||||
bool TerrainType::isTransitionRequired() const
|
||||
{
|
||||
return transitionRequired;
|
||||
|
||||
Reference in New Issue
Block a user