Class Biome
java.lang.Object
com.github.yellowstonegames.place.Biome
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
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
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 ClassesModifier and TypeClassDescriptionstatic enumRepresents 6 average temperature levels that can determine a biome.static enumRepresents 6 average precipitation/moisture levels that can determine a biome. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringSandy or otherwise light-colored shorelines; here, these are more common in warmer places.static final StringForest that tends to be cold and very wet; tends toward evergreen trees like pine.static final StringUnderground ecosystems may use this as a kind of wilderness biome.final intstatic final StringHot, dry, barren land; may or may not be sandy.static final StringA catch-all for any unusual biomes with no real-world equivalents, like cyberspace or another dimension.static final StringPrairies that are dry and usually wind-swept, but not especially hot or cold.final Biome.Heatstatic final StringCold barren land covered in permafrost; also used for rivers and lakes that are frozen.static final StringStill freshwater that lasts for at least the majority of a season; also used for swamps and marshes.final Biome.Moisturestatic final StringOne small step for man, one giant leap for mankind; a barren, pale, dusty plain devoid of life.final StringShould always be one word in the constants here; recommended to be one word in any user-defined Biomes.static final StringSaltwater of any size; typically not inland.final charHow to represent the Biome in a char format, such as a 2D char array for a map.static final StringFlowing freshwater of any size; may sometimes be considered the same asLAKE_BIOME.static final StringRocky or otherwise rugged shorelines; here, these are more common in colder places.static final StringHot, mostly-dry land with some parched vegetation; also called scrub or chaparral.static final StringForest that becomes barren in winter (deciduous trees); not especially hot or cold.static final StringThe 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 StringForest that tends to be slightly warm but very wet.static final StringHot, humid, and soaked by frequent rain, this is a lush ecosystem of tropical-evergreen forest.static final StringVery cold plains that still have some low-lying vegetation; also called taiga.static final StringWhat kind of game doesn't have a volcano battle, as unrealistic as it might be?static final StringPart-way between a prairie and a forest; not especially hot or cold. -
Constructor Summary
ConstructorsConstructorDescriptionBiome()Biome(Biome.Heat h, Biome.Moisture m, String n, int o) Biome(Biome.Heat h, Biome.Moisture m, String n, int o, char representation) -
Method Summary
-
Field Details
-
heat
-
moisture
-
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 representationHow to represent the Biome in a char format, such as a 2D char array for a map. -
DESERT_BIOME
-
SAVANNA_BIOME
Hot, mostly-dry land with some parched vegetation; also called scrub or chaparral.- See Also:
-
TROPICAL_RAINFOREST_BIOME
Hot, humid, and soaked by frequent rain, this is a lush ecosystem of tropical-evergreen forest.- See Also:
-
GRASSLAND_BIOME
Prairies that are dry and usually wind-swept, but not especially hot or cold.- See Also:
-
WOODLAND_BIOME
Part-way between a prairie and a forest; not especially hot or cold.- See Also:
-
SEASONAL_FOREST_BIOME
Forest that becomes barren in winter (deciduous trees); not especially hot or cold.- See Also:
-
TEMPERATE_RAINFOREST_BIOME
Forest that tends to be slightly warm but very wet.- See Also:
-
BOREAL_FOREST_BIOME
Forest that tends to be cold and very wet; tends toward evergreen trees like pine.- See Also:
-
TUNDRA_BIOME
Very cold plains that still have some low-lying vegetation; also called taiga.- See Also:
-
ICE_BIOME
Cold barren land covered in permafrost; also used for rivers and lakes that are frozen.- See Also:
-
BEACH_BIOME
Sandy or otherwise light-colored shorelines; here, these are more common in warmer places.- See Also:
-
ROCKY_BIOME
Rocky or otherwise rugged shorelines; here, these are more common in colder places.- See Also:
-
RIVER_BIOME
Flowing freshwater of any size; may sometimes be considered the same asLAKE_BIOME.- See Also:
-
LAKE_BIOME
Still freshwater that lasts for at least the majority of a season; also used for swamps and marshes.- See Also:
-
OCEAN_BIOME
-
SPACE_BIOME
The final frontier; empty areas not covered by the map.- See Also:
-
MOON_BIOME
One small step for man, one giant leap for mankind; a barren, pale, dusty plain devoid of life.- See Also:
-
CAVERN_BIOME
Underground ecosystems may use this as a kind of wilderness biome.- See Also:
-
EXOTIC_BIOME
A catch-all for any unusual biomes with no real-world equivalents, like cyberspace or another dimension.- See Also:
-
VOLCANO_BIOME
What kind of game doesn't have a volcano battle, as unrealistic as it might be?- See Also:
-
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
-
Biome
public Biome() -
Biome
-
Biome
-
-
Method Details
-
equals
-
hashCode
-
toString
-