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:
getNamein interfaceElevationGenerator- Returns:
- translatable string for the generator name
-
getTooltip
- Specified by:
getTooltipin interfaceElevationGenerator- Returns:
- translatable string for the tooltip / description
-
generate
public void generate(int hilliness, int width, int height, int[][] elevationMap) Description copied from interface:ElevationGeneratorGenerate a map of given width and height and put it into the supplied elevation map- Specified by:
generatein 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]
-