/// <summary> /// Creates a new SteppedHallwayPattern with the given properties. /// </summary> /// <param name="plateauRelativeHeight">From 0.0-1.0, the height of a plateau relative to the height of the region.</param> /// <param name="plateauRelativeHeightMaxVariation">The maximum allowable variation in the plateau height.</param> public SteppedHallwayPattern(PlateauGenerationProperties plateauGeneration, float plateauRelativeHeight) { PlateauRelativeHeight = Math.Max(0, Math.Min(1, plateauRelativeHeight)); Generation = plateauGeneration; MaxSuitability = Suitability.Very; }
public ZipperPattern(PlateauGenerationProperties plateauGen, Interval acceptableRatios, int minArea) { Generation = plateauGen; AcceptableRegionRatios = acceptableRatios; MinArea = minArea; MaxSuitability = Suitability.Very; }
public ThickHurdlePattern(PlateauGenerationProperties plateaus, float averageHeightScale, float heightVariance) { HurdleAverageSpaceScale = averageHeightScale; HurdleHeightVariance = heightVariance; PlateauGeneration = plateaus; MaxSuitability = Suitability.Very; }