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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addWeather
(Sector sector, Rules rules) boolean
allowAcceleratorLanding
(Sector sector) boolean
allowLanding
(Sector sector) void
beforeSaveWrite
(Sector sector) void
void
generateSector
(Sector sector) protected void
arc.graphics.g2d.TextureRegion
getLockedIcon
(Sector hovered) void
getLockedText
(Sector hovered, StringBuilder out) int
getSectorSize
(Sector sector) float
protected float
noise
(float x, float y, double octaves, double falloff, double scl, double mag) void
onSectorCaptured
(Sector sector) void
onSectorLost
(Sector sector) 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.graphics.g3d.HexMesher
getColor, getEmissiveColor, getHeight, isEmissive, skip
Methods inherited from interface mindustry.maps.generators.WorldGenerator
postGenerate
-
Field Details
-
baseSeed
public int baseSeed -
seed
public int seed -
sector
-
-
Constructor Details
-
PlanetGenerator
public PlanetGenerator()
-
-
Method Details
-
generateSector
-
onSectorCaptured
-
onSectorLost
-
beforeSaveWrite
-
getLockedText
-
getLockedIcon
-
allowLanding
- Returns:
- whether to allow landing on the specified procedural sector
-
allowAcceleratorLanding
- 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
-