Class SimplexGenerator

java.lang.Object
megamek.common.util.generator.SimplexGenerator
All Implemented Interfaces:
ElevationGenerator

public class SimplexGenerator extends Object implements ElevationGenerator
  • Constructor Details

    • SimplexGenerator

      public SimplexGenerator()
    • SimplexGenerator

      public SimplexGenerator(Random rnd)
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface ElevationGenerator
      Returns:
      translatable string for the generator name
    • getTooltip

      public String getTooltip()
      Specified by:
      getTooltip in interface ElevationGenerator
      Returns:
      translatable string for the tooltip / description
    • generate

      public void generate(int hilliness, int width, int height, int[][] elevationMap)
      Description copied from interface: ElevationGenerator
      Generate a map of given width and height and put it into the supplied elevation map
      Specified by:
      generate in interface ElevationGenerator
      Parameters:
      hilliness - 1-100
      width - width of the map, in hexes
      height - height of the map, in hexes
      elevationMap - the target elevation map, indexed as elevationMap[width][height]