Package mindustry.maps.generators
Class PlanetGenerator
java.lang.Object
mindustry.maps.generators.BasicGenerator
mindustry.maps.generators.PlanetGenerator
- All Implemented Interfaces:
HexMesher
,WorldGenerator
- Direct Known Subclasses:
BlankPlanetGenerator
,ErekirPlanetGenerator
,SerpuloPlanetGenerator
,TantrosPlanetGenerator
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addWeather
(Sector sector, Rules rules) boolean
allowLanding
(Sector sector) void
void
generateSector
(Sector sector) Should generate sector bases for a planet.protected void
int
getSectorSize
(Sector sector) float
protected float
noise
(float x, float y, double octaves, double falloff, double scl, double mag) Methods inherited from class mindustry.maps.generators.BasicGenerator
blend, brush, cells, cells, cliffs, decoration, distort, each, erase, generate, generate, inverseFloodFill, median, median, median, near, nearAir, nearWall, noise, noise, noise, ore, oreAround, ores, overlay, pass, pathfind, removeWall, scatter, tech, tech, terrain, trimDark, wallOre
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface mindustry.maps.generators.WorldGenerator
postGenerate
-
Field Details
-
baseSeed
public int baseSeed -
seed
public int seed -
ints
-
sector
-
-
Constructor Details
-
PlanetGenerator
public PlanetGenerator()
-
-
Method Details
-
generateSector
Should generate sector bases for a planet. -
allowLanding
- Returns:
- whether to allow landing on the specified procedural sector
-
addWeather
-
genTile
-
noise
protected float noise(float x, float y, double octaves, double falloff, double scl, double mag) - Specified by:
noise
in classBasicGenerator
-
getSizeScl
public float getSizeScl()- Returns:
- the scaling factor for sector rects.
-
getSectorSize
-
generate
-