Class Biome

java.lang.Object
com.github.yellowstonegames.place.Biome

public class Biome extends Object
A data class that represents a particular kind of ecosystem that appears at a given combination of average moisture, average temperature, and elevation. This stores a name for each biome (always as one word in the constants this provides), a char to represent the biome (typically in char arrays, and not necessarily displayed), and a String color description to be used by DescriptiveColor.describe(String) or describeOklab(), which is probably preferable. Using the Oklab color allows randomly or gradually changing the color as one biome approaches another, which looks more natural in many cases.
Heat and moisture determine many biomes based on a biome mapper (one such mapper is present in squidworld). The presence of an ocean generally overrides the heat/moisture effects, unless the ocean is cold enough to freeze. A lot of usage will depend on TABLE, and its ordering; see its docs for more.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Represents 6 average temperature levels that can determine a biome.
    static enum 
    Represents 6 average precipitation/moisture levels that can determine a biome.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Sandy or otherwise light-colored shorelines; here, these are more common in warmer places.
    static final String
    Forest that tends to be cold and very wet; tends toward evergreen trees like pine.
    static final String
    Underground ecosystems may use this as a kind of wilderness biome.
    final int
     
    static final String
    Hot, dry, barren land; may or may not be sandy.
    static final String
    A catch-all for any unusual biomes with no real-world equivalents, like cyberspace or another dimension.
    static final String
    Prairies that are dry and usually wind-swept, but not especially hot or cold.
     
    static final String
    Cold barren land covered in permafrost; also used for rivers and lakes that are frozen.
    static final String
    Still freshwater that lasts for at least the majority of a season; also used for swamps and marshes.
     
    static final String
    One small step for man, one giant leap for mankind; a barren, pale, dusty plain devoid of life.
    final String
    Should always be one word in the constants here; recommended to be one word in any user-defined Biomes.
    static final String
    Saltwater of any size; typically not inland.
    final char
    How to represent the Biome in a char format, such as a 2D char array for a map.
    static final String
    Flowing freshwater of any size; may sometimes be considered the same as LAKE_BIOME.
    static final String
    Rocky or otherwise rugged shorelines; here, these are more common in colder places.
    static final String
    Hot, mostly-dry land with some parched vegetation; also called scrub or chaparral.
    static final String
    Forest that becomes barren in winter (deciduous trees); not especially hot or cold.
    static final String
    The final frontier; empty areas not covered by the map.
    static final Biome[]
    66 Biome constants, organized in groups of 6 from coldest to hottest, coldest to hottest, and so on.
    static final String
    Forest that tends to be slightly warm but very wet.
    static final String
    Hot, humid, and soaked by frequent rain, this is a lush ecosystem of tropical-evergreen forest.
    static final String
    Very cold plains that still have some low-lying vegetation; also called taiga.
    static final String
    What kind of game doesn't have a volcano battle, as unrealistic as it might be?
    static final String
    Part-way between a prairie and a forest; not especially hot or cold.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     
    Biome(Biome.Heat h, Biome.Moisture m, String n, int o, char representation)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
     

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • heat

      public final Biome.Heat heat
    • moisture

      public final Biome.Moisture moisture
    • name

      public final String name
      Should always be one word in the constants here; recommended to be one word in any user-defined Biomes.
    • colorOklab

      public final int colorOklab
    • representation

      public final char representation
      How to represent the Biome in a char format, such as a 2D char array for a map.
    • DESERT_BIOME

      public static final String DESERT_BIOME
      Hot, dry, barren land; may or may not be sandy.
      See Also:
    • SAVANNA_BIOME

      public static final String SAVANNA_BIOME
      Hot, mostly-dry land with some parched vegetation; also called scrub or chaparral.
      See Also:
    • TROPICAL_RAINFOREST_BIOME

      public static final String TROPICAL_RAINFOREST_BIOME
      Hot, humid, and soaked by frequent rain, this is a lush ecosystem of tropical-evergreen forest.
      See Also:
    • GRASSLAND_BIOME

      public static final String GRASSLAND_BIOME
      Prairies that are dry and usually wind-swept, but not especially hot or cold.
      See Also:
    • WOODLAND_BIOME

      public static final String WOODLAND_BIOME
      Part-way between a prairie and a forest; not especially hot or cold.
      See Also:
    • SEASONAL_FOREST_BIOME

      public static final String SEASONAL_FOREST_BIOME
      Forest that becomes barren in winter (deciduous trees); not especially hot or cold.
      See Also:
    • TEMPERATE_RAINFOREST_BIOME

      public static final String TEMPERATE_RAINFOREST_BIOME
      Forest that tends to be slightly warm but very wet.
      See Also:
    • BOREAL_FOREST_BIOME

      public static final String BOREAL_FOREST_BIOME
      Forest that tends to be cold and very wet; tends toward evergreen trees like pine.
      See Also:
    • TUNDRA_BIOME

      public static final String TUNDRA_BIOME
      Very cold plains that still have some low-lying vegetation; also called taiga.
      See Also:
    • ICE_BIOME

      public static final String ICE_BIOME
      Cold barren land covered in permafrost; also used for rivers and lakes that are frozen.
      See Also:
    • BEACH_BIOME

      public static final String BEACH_BIOME
      Sandy or otherwise light-colored shorelines; here, these are more common in warmer places.
      See Also:
    • ROCKY_BIOME

      public static final String ROCKY_BIOME
      Rocky or otherwise rugged shorelines; here, these are more common in colder places.
      See Also:
    • RIVER_BIOME

      public static final String RIVER_BIOME
      Flowing freshwater of any size; may sometimes be considered the same as LAKE_BIOME.
      See Also:
    • LAKE_BIOME

      public static final String LAKE_BIOME
      Still freshwater that lasts for at least the majority of a season; also used for swamps and marshes.
      See Also:
    • OCEAN_BIOME

      public static final String OCEAN_BIOME
      Saltwater of any size; typically not inland.
      See Also:
    • SPACE_BIOME

      public static final String SPACE_BIOME
      The final frontier; empty areas not covered by the map.
      See Also:
    • MOON_BIOME

      public static final String MOON_BIOME
      One small step for man, one giant leap for mankind; a barren, pale, dusty plain devoid of life.
      See Also:
    • CAVERN_BIOME

      public static final String CAVERN_BIOME
      Underground ecosystems may use this as a kind of wilderness biome.
      See Also:
    • EXOTIC_BIOME

      public static final String EXOTIC_BIOME
      A catch-all for any unusual biomes with no real-world equivalents, like cyberspace or another dimension.
      See Also:
    • VOLCANO_BIOME

      public static final String VOLCANO_BIOME
      What kind of game doesn't have a volcano battle, as unrealistic as it might be?
      See Also:
    • TABLE

      public static final Biome[] TABLE
      66 Biome constants, organized in groups of 6 from coldest to hottest, coldest to hottest, and so on. The first 6 of these groups are organized from driest to wettest, then the groups after that are coastlines, rivers, lakes, oceans, and lastly "strange" biomes. The strange biomes aren't organized by coldest to hottest, and they are empty space, moonscape, cavern, "exotic" (a catch-all for supernatural biomes), and volcano biomes.
  • Constructor Details

  • Method Details