OpenTTD Source: src/tgp.h File Reference

OpenTTD Source 14.0-beta3

Functions
tgp.h File Reference

Go to the source code of this file.

## Functions
void | GenerateTerrainPerlin ()
| The main new land generator using Perlin noise. More...
uint | GetEstimationTGPMapHeight ()
| Get an overestimation of the highest peak TGP wants to generate.

## Detailed Description

Functions for the Perlin noise enhanced map generator.

Definition in file tgp.h.

## Function Documentation

## ◆ GenerateTerrainPerlin()

void GenerateTerrainPerlin | ( |  | ) |

The main new land generator using Perlin noise.

Desert landscape is handled different to all others to give a desert valley between two high mountains. Clearly if a low height terrain (flat/very flat) is chosen, then the tropic areas won't be high enough, and there will be very little tropic on the map. Thus Tropic works best on Hilly or Mountainous.

Definition at line 991 of file tgp.cpp.

References _settings_game, AllocHeightMap(), GameSettings::construction, ConstructionSettings::freeform_edges, FreeHeightMap(), GenerateWorldSetAbortCallback(), GWP_LANDSCAPE, HeightMapGenerate(), HeightMapNormalize(), and IncreaseGeneratingWorldProgress().