Package megamek.common.util.generator
Interface ElevationGenerator
- All Known Implementing Classes:
SimplexGenerator
public interface ElevationGenerator
-
Method Details
-
getName
String getName()- Returns:
- translatable string for the generator name
-
getTooltip
String getTooltip()- Returns:
- translatable string for the tooltip / description
-
generate
void generate(int hilliness, int width, int height, int[][] elevationMap) Generate a map of given width and height and put it into the supplied elevation map- 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]
-