Defines the world elevation at any XZ point. Contains a collection of biomes. More...
#include <Biome.h>
Public Member Functions | |
| void | addBiome (CBiome *biome) |
| Adds a biome to the heightmap. | |
| double | getValue (double x, double z) |
| Returns the height for the provided point in the XZ plane as a double precision. This method will perform interpolation, providing smoother results. | |
| double | getValue (double x, double z, CBiome *&biome) |
| Returns the height for the provided point in the XZ plane as a double precision. Also returns the top biome. This method will perform interpolation, providing smoother results. | |
| double | getValue (double x, double z, CBiome *&biome, double &noiseHeight, double &tileHeight, double &tileHeightMinFiltered, double &tileHeightMaxFiltered) |
| Returns the height for the provided point in the XZ plane as a double precision. Also returns the top biome and individual height values for the noise and tileset channels. This method will perform interpolation, providing smoother results. | |
| unsigned int | getValue (int x, int z) |
| Returns the height for the provided point in the XZ plane as an integer. This will not perfom any interpolation. Use this function if smoothness is not important. | |
| unsigned int | getValue (int x, int z, CBiome *&topBiome) |
| Returns the height for the provided point in the XZ plane as an integer. Also returns the top biome. This will not perfom any interpolation. Use this function if smoothness is not important. | |
| CBiome * | getBiome (int x, int z) |
| Retruns the top biome for the specified point. | |
Public Attributes | |
| TVector< CBiome * > | biomes |
Defines the world elevation at any XZ point. Contains a collection of biomes.