Beispiel #1
0
 /// <summary>
 /// Checks whether a Building of the chosen type can be placed on the Position.
 /// The condition is also that the Fog is currently uncovered there.
 /// </summary>
 /// <param name="buildingType">Type of the building meant to be built.</param>
 /// <returns>True if the building can be placed on the Position.</returns>
 public bool IsValidPlacement(BuildingType buildingType)
 {
     return(IsFogUncovered() &&
            BuildingHelper.IsValidPlacement(
                BuildingHelper.FindBuildingInFaction(buildingType, null), this, Location, false));
 }