Terrain can appear in four different roles: as the interior of a cell, as a border between cells, as a connection between cells, or as a coating overlaying the normal terrain. The terrain subtype says which role a type can play.
TerrainTypeProperty: subtype
subtype
This property is the role that the terrain type can appear in.
Defaults to cell
.
GlobalConstant: cell
This constant indicates that terrain can fill a cell. All units in the open and with an altitude of 0 are assumed to be surrounded by the cell terrain.
GlobalConstant: border
This constant indicates that the terrain can be a border.
GlobalConstant: connection
This constant indicates that the terrain can be a connection.
GlobalConstant: coating
This constant indicates that the terrain can be a coating. A coating is a temporary terrain modification. The classic example is snow, which effectively changes some kinds of terrain, but not completely and usually not permanently. Cells can have varying heaviness of each type of coating.
Table: coating-depth-min
t1 t2 -> n
In order for a coating t1 to "stick",
this table says much must be added all at once to terrain t2.
A coating depth that drops below this will disappear immediately.
Defaults to 0
.
Table: coating-depth-max
t1 t2 -> n
This table is the upper limit on coating depth.
Defaults to 0
.
Terrain types may have additional subtype attributes that are used only during synthesis, to select appropriate subtypes for special purposes.
TerrainTypeProperty: subtype-x
n
This property is extra subtype information, used in synthesis.
Defaults to no-x
.
GlobalConstant: no-x
GlobalConstant: river-x
This constant indicates that synthesis methods should treat this type as a river. The terrain type may be either a border or a connection.
GlobalConstant: valley-x
This constant indicates that synthesis methods should treat this type as a valley.
GlobalConstant: road-x
This constant indicates that synthesis methods should treat this type as a road.
TerrainTypeProperty: liquid
t/f
This property is true if the terrain type represents a liquid,
which means that adjacent cells of liquid must have the same elevation.
Defaults to false
.