Class BasicGenerator

java.lang.Object
mindustry.maps.generators.BasicGenerator
All Implemented Interfaces:
WorldGenerator
Direct Known Subclasses:
PlanetGenerator

public abstract class BasicGenerator extends Object implements WorldGenerator
  • Field Details

  • Constructor Details

    • BasicGenerator

      public BasicGenerator()
  • Method Details

    • generate

      public void generate(Tiles tiles)
      Specified by:
      generate in interface WorldGenerator
    • generate

      protected void generate()
    • median

      public void median(int radius)
    • median

      public void median(int radius, double percentile)
    • median

      public void median(int radius, double percentile, @Nullable Block targetFloor)
    • ores

      public void ores(Seq<Block> ores)
    • ore

      public void ore(Block dest, Block src, float i, float thresh)
    • oreAround

      public void oreAround(Block ore, Block wall, int radius, float scl, float thresh)
    • wallOre

      public void wallOre(Block src, Block dest, float scl, float thresh)
    • cliffs

      public void cliffs()
    • terrain

      public void terrain(Block dst, float scl, float mag, float cmag)
    • noise

      public void noise(Block floor, Block block, int octaves, float falloff, float scl, float threshold)
    • overlay

      public void overlay(Block floor, Block block, float chance, int octaves, float falloff, float scl, float threshold)
    • tech

      public void tech()
    • tech

      public void tech(Block floor1, Block floor2, Block wall)
    • distort

      public void distort(float scl, float mag)
    • scatter

      public void scatter(Block target, Block dst, float chance)
    • each

      public void each(Intc2 r)
    • cells

      public void cells(int iterations)
    • cells

      public void cells(int iterations, int birthLimit, int deathLimit, int cradius)
    • noise

      protected float noise(float x, float y, double scl, double mag)
    • noise

      protected abstract float noise(float x, float y, double octaves, double falloff, double scl, double mag)
    • noise

      protected float noise(float x, float y, double octaves, double falloff, double scl)
    • pass

      public void pass(Intc2 r)
    • nearWall

      public boolean nearWall(int x, int y)
    • nearAir

      public boolean nearAir(int x, int y)
    • removeWall

      public void removeWall(int cx, int cy, int rad, Boolf<Block> pred)
    • near

      public boolean near(int cx, int cy, int rad, Block block)
    • decoration

      public void decoration(float chance)
    • blend

      public void blend(Block floor, Block around, float radius)
    • brush

      public void brush(Seq<Tile> path, int rad)
    • erase

      public void erase(int cx, int cy, int rad)
    • pathfind

      public Seq<Tile> pathfind(int startX, int startY, int endX, int endY, Astar.TileHueristic th, Astar.DistanceHeuristic dh)
    • trimDark

      public void trimDark()
    • inverseFloodFill

      public void inverseFloodFill(Tile start)