Package megamek.common.util.generator
Class SimplexGenerator
java.lang.Object
megamek.common.util.generator.SimplexGenerator
- All Implemented Interfaces:
ElevationGenerator
-
Constructor Details
-
SimplexGenerator
public SimplexGenerator() -
SimplexGenerator
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceElevationGenerator
- Returns:
- translatable string for the generator name
-
getTooltip
- Specified by:
getTooltip
in interfaceElevationGenerator
- 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 interfaceElevationGenerator
- Parameters:
hilliness
- 1-100width
- width of the map, in hexesheight
- height of the map, in hexeselevationMap
- the target elevation map, indexed as elevationMap[width][height]
-