|
OpenTTD Source 20260109-master-g241b5fcdfe
|
Height map - allocated array of heights (Map::SizeX() + 1) * (Map::SizeY() + 1) More...
Public Member Functions | |
| Height & | height (uint x, uint y) |
| Height map accessor. | |
Data Fields | |
| std::vector< Height > | h |
| array of heights | |
| int | dim_x |
| height map size_x Map::SizeX() + 1 | |
| int | size_x |
| Map::SizeX() | |
| int | size_y |
| Map::SizeY() | |
Height map - allocated array of heights (Map::SizeX() + 1) * (Map::SizeY() + 1)
|
inline |
Height map accessor.
| x | X position |
| y | Y position |
Definition at line 175 of file tgp.cpp.
Referenced by GenerateTerrainPerlin(), HeightMapCoastLines(), HeightMapCurves(), HeightMapGenerate(), HeightMapGetMinMaxAvg(), HeightMapSmoothCoastInDirection(), and HeightMapSmoothSlopes().
| int HeightMap::dim_x |
height map size_x Map::SizeX() + 1
Definition at line 165 of file tgp.cpp.
Referenced by AllocHeightMap(), and height().
| std::vector<Height> HeightMap::h |
array of heights
Definition at line 162 of file tgp.cpp.
Referenced by AllocHeightMap(), FreeHeightMap(), height(), HeightMapAdjustWaterLevel(), HeightMapGenerate(), HeightMapGetMinMaxAvg(), HeightMapMakeHistogram(), and HeightMapSineTransform().
| int HeightMap::size_x |
Definition at line 166 of file tgp.cpp.
Referenced by AllocHeightMap(), GenerateTerrainPerlin(), HeightMapAdjustWaterLevel(), HeightMapCoastLines(), HeightMapCurves(), HeightMapGenerate(), HeightMapGetMinMaxAvg(), HeightMapSmoothCoasts(), HeightMapSmoothSlopes(), and IsValidXY().
| int HeightMap::size_y |
Definition at line 167 of file tgp.cpp.
Referenced by AllocHeightMap(), GenerateTerrainPerlin(), HeightMapAdjustWaterLevel(), HeightMapCoastLines(), HeightMapCurves(), HeightMapGenerate(), HeightMapGetMinMaxAvg(), HeightMapSmoothCoasts(), HeightMapSmoothSlopes(), and IsValidXY().