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 TypeMethodDescriptionvoidaddWeather(Sector sector, Rules rules) booleanallowAcceleratorLanding(Sector sector) booleanallowLanding(Sector sector) voidbeforeSaveWrite(Sector sector) findLaunchCandidate(Sector destination, Sector selected) voidgenerate(Tiles tiles, Sector sec, WorldParams params) voidgenerateSector(Sector sector) protected voidarc.graphics.g2d.TextureRegiongetLockedIcon(Sector hovered) voidgetLockedText(Sector hovered, StringBuilder out) intgetSectorSize(Sector sector) floatprotected floatnoise(float x, float y, double octaves, double falloff, double scl, double mag) voidonSectorCaptured(Sector sector) voidonSectorLost(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, wallOreMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface mindustry.graphics.g3d.HexMesher
getColor, getEmissiveColor, getHeight, isEmissive, skipMethods inherited from interface mindustry.maps.generators.WorldGenerator
postGenerate
-
Field Details
-
tmpItems
-
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
-
findLaunchCandidate
-
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:
noisein classBasicGenerator
-
getSizeScl
public float getSizeScl()- Returns:
- the scaling factor for sector rects.
-
getSectorSize
-
generate
-