Esempio n. 1
0
        public static PolarRegion GenerateSouthPole(Boundary boundary)
        {
            var(top, bottom) = boundary.CutHorizontally(boundary.MinY + FilledRows);

            var iceTiles = Landmass.Fill(bottom).LandTiles
                           .Union(Landmass.Generate(top, top.Area / 4).LandTiles);

            return(new PolarRegion(iceTiles));
        }
Esempio n. 2
0
        public static (Boundary Top, Boundary Bottom) BisectHorizontally(this Boundary boundary)
        {
            var halfHeight = (boundary.Height) / 2;

            return(boundary.CutHorizontally(boundary.MinY + halfHeight));
        }