OpenTTD Source 20241224-master-gee860a5c8e
|
Functions for the Perlin noise enhanced map generator. More...
Go to the source code of this file.
Functions | |
void | GenerateTerrainPerlin () |
The main new land generator using Perlin noise. | |
uint | GetEstimationTGPMapHeight () |
Get an overestimation of the highest peak TGP wants to generate. | |
Functions for the Perlin noise enhanced map generator.
Definition in file tgp.h.
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 976 of file tgp.cpp.
References _height_map, _settings_game, AllocHeightMap(), Clamp(), GameSettings::construction, ConstructionSettings::freeform_edges, FreeHeightMap(), GenerateWorldSetAbortCallback(), GWP_LANDSCAPE, H2I, HeightMap::height(), HeightMapGenerate(), HeightMapNormalize(), IncreaseGeneratingWorldProgress(), MakeVoid(), Map::SizeX(), Map::SizeY(), TgenSetTileHeight(), TGPGetMaxHeight(), and TileXY().
Referenced by GenerateLandscape().
uint GetEstimationTGPMapHeight | ( | ) |
Get an overestimation of the highest peak TGP wants to generate.
Definition at line 250 of file tgp.cpp.
References H2I, and TGPGetMaxHeight().
Referenced by GenerateWorld().