Class WildMapView

java.lang.Object
squidpony.squidgrid.gui.gdx.WildMapView

public class WildMapView
extends Object
Created by Tommy Ettinger on 9/6/2019.
  • Field Details

  • Constructor Details

  • Method Details

    • getWidth

      public int getWidth()
    • getHeight

      public int getHeight()
    • getColorMap

      public float[][] getColorMap()
    • getWildMap

      public WildMap getWildMap()
    • setWildMap

      public void setWildMap​(WildMap wildMap)
    • defaultViewer

      public static HashMap<String,​? extends ICellVisible> defaultViewer()
    • initialize

      public void initialize()
    • initialize

      public void initialize​(float hue, float saturation, float brightness, float contrast)
    • initialize

      public void initialize​(com.badlogic.gdx.graphics.Color desertColor, com.badlogic.gdx.graphics.Color savannaColor, com.badlogic.gdx.graphics.Color tropicalRainforestColor, com.badlogic.gdx.graphics.Color grasslandColor, com.badlogic.gdx.graphics.Color woodlandColor, com.badlogic.gdx.graphics.Color seasonalForestColor, com.badlogic.gdx.graphics.Color temperateRainforestColor, com.badlogic.gdx.graphics.Color borealForestColor, com.badlogic.gdx.graphics.Color tundraColor, com.badlogic.gdx.graphics.Color iceColor, com.badlogic.gdx.graphics.Color beachColor, com.badlogic.gdx.graphics.Color rockyColor, com.badlogic.gdx.graphics.Color shallowColor, com.badlogic.gdx.graphics.Color deepColor, com.badlogic.gdx.graphics.Color emptyColor)
      Initializes the colors to use for each biome (these are almost always mixed with other biome colors in practice). Each parameter may be null to use the default for an Earth-like world; otherwise it should be a libGDX Color or some subclass, like SColor. All non-null parameters should probably be fully opaque, except emptyColor, which is only used for world maps that show empty space (like a globe, as produced by WorldMapGenerator.RotatingSpaceMap).
      Parameters:
      desertColor - hot, dry, barren land; may be sandy, but many real-world deserts don't have much sand
      savannaColor - hot, mostly-dry land with some parched vegetation; also called scrub or chaparral
      tropicalRainforestColor - hot, extremely wet forests with dense rich vegetation
      grasslandColor - prairies that are dry and usually wind-swept, but not especially hot or cold
      woodlandColor - part-way between a prairie and a forest; not especially hot or cold
      seasonalForestColor - forest that becomes barren in winter (deciduous trees); not especially hot or cold
      temperateRainforestColor - forest that tends to be slightly warm but very wet
      borealForestColor - forest that tends to be cold and very wet
      tundraColor - very cold plains that still have some low-lying vegetation; also called taiga
      iceColor - cold barren land covered in permafrost; also used for rivers and lakes that are frozen
      beachColor - sandy or otherwise light-colored shorelines; here, these are more common in warmer places
      rockyColor - rocky or otherwise rugged shorelines; here, these are more common in colder places
      shallowColor - the color of very shallow water; will be mixed with deepColor to get most ocean colors
      deepColor - the color of very deep water; will be mixed with shallowColor to get most ocean colors
      emptyColor - the color used for empty space off the edge of the world map; may be transparent
    • generate

      public void generate()
    • show

      public void show​(SparseLayers layers)