HeightMap Struct Reference

Height map - allocated array of heights (MapSizeX() + 1) x (MapSizeY() + 1). More...


Public Member Functions

height_theight (uint x, uint y)
 Height map accessor.

Data Fields

height_th
uint dim_x
uint total_size
uint size_x
uint size_y


Detailed Description

Height map - allocated array of heights (MapSizeX() + 1) x (MapSizeY() + 1).

Definition at line 163 of file tgp.cpp.


Member Function Documentation

height_t& HeightMap::height ( uint  x,
uint  y 
) [inline]

Height map accessor.

Parameters:
x X position
y Y position
Returns:
height as fixed point number

Definition at line 177 of file tgp.cpp.

Referenced by ApplyNoise(), GenerateTerrainPerlin(), HeightMapCoastLines(), HeightMapGetMinMaxAvg(), HeightMapSmoothCoastInDirection(), and HeightMapSmoothSlopes().


The documentation for this struct was generated from the following file:

Generated on Thu Oct 1 11:03:45 2009 for OpenTTD by  doxygen 1.5.6