OpenTTD Source  12.0-beta2
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. More...
 

Data Fields

std::vector< height_th
 
int dim_x
 
int size_x
 
int size_y
 

Detailed Description

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

Definition at line 162 of file tgp.cpp.

Member Function Documentation

◆ height()

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

Height map accessor.

Parameters
xX position
yY position
Returns
height as fixed point number

Definition at line 177 of file tgp.cpp.

Referenced by HeightMapGetMinMaxAvg().


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