Class WildernessGenerator.MixedWildernessGenerator

java.lang.Object
com.github.yellowstonegames.place.WildernessGenerator
com.github.yellowstonegames.place.WildernessGenerator.MixedWildernessGenerator
All Implemented Interfaces:
PlaceGenerator
Enclosing class:
WildernessGenerator

public static class WildernessGenerator.MixedWildernessGenerator extends WildernessGenerator
A subclass of WildernessGenerator that serves as a ragged edge between 2, 3, or 4 WildernessGenerators in a square intersection. You almost always supply 4 WildernessGenerators to this (typically not other MixedWildernessGenerators), one for each corner of the map, and this generates an uneven border between them. Make sure to look up the indices in the WildernessGenerator.content and WildernessGenerator.floors using this MixedWildernessGenerator's WildernessGenerator.contentTypes and WildernessGenerator.floorTypes, not the ones in the inner ]WildernessGenerators, because the indices in the MixedWildernessGenerator are different.
  • Field Details

    • pieceMap

      public final int[][] pieceMap
    • pieces

      public final WildernessGenerator[] pieces
    • minFloors

      protected final int[] minFloors
    • maxFloors

      protected final int[] maxFloors
    • minContents

      protected final int[] minContents
    • maxContents

      protected final int[] maxContents
  • Constructor Details

  • Method Details