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

public abstract class PlanetGenerator extends BasicGenerator implements HexMesher
  • Field Details

    • baseSeed

      public int baseSeed
    • seed

      public int seed
    • ints

      protected IntSeq ints
    • sector

      @Nullable protected Sector sector
  • Constructor Details

    • PlanetGenerator

      public PlanetGenerator()
  • Method Details

    • generateSector

      public void generateSector(Sector sector)
      Should generate sector bases for a planet.
    • allowLanding

      public boolean allowLanding(Sector sector)
      Returns:
      whether to allow landing on the specified procedural sector
    • addWeather

      public void addWeather(Sector sector, Rules rules)
    • genTile

      protected void genTile(Vec3 position, TileGen tile)
    • noise

      protected float noise(float x, float y, double octaves, double falloff, double scl, double mag)
      Specified by:
      noise in class BasicGenerator
    • getSizeScl

      public float getSizeScl()
      Returns:
      the scaling factor for sector rects.
    • getSectorSize

      public int getSectorSize(Sector sector)
    • generate

      public void generate(Tiles tiles, Sector sec, int seed)