Skip to content
Ben Smithers edited this page Apr 11, 2020 · 2 revisions

Home > Map Types > Overland > OHex

This is the Hex implementation for the overland map type.

Class Attributes

  • All Hex attributes

  • altitude (float, 0-1): altitude of hex.

  • biodiversity (float, 0-1): unused

  • biome (string): misnomer! Holds the "climate" at the hex, set by the Climatizer. No relation to Biomes or Regions. Needs to be renamed.

  • rainfall (float, 0-1): average rainfall on hex

  • temperature (float, 0-1): average temperature on hex

Class Methods

  • All Hex Methods

  • rescale_color: changes the Hexes' fill color according to the altitude attribute.

  • set_altitude: setter for the altitude attribute. Accepts int or float.

  • set_biodiversity: setter for the biodiversity attribute. Accepts int or float.

  • set_rainfall: setter for the rainfall attribute. Accepts int or float.

  • set_temperature: setter for the temperature attribute. Accepts int or float.

Clone this wiki locally