Cuberite
A lightweight, fast and extensible game server for Minecraft
|
#include <Noise3DGenerator.h>
Public Member Functions | |
cBiomalNoise3DComposable (int a_Seed, cBiomeGen &a_BiomeGen) | |
void | Initialize (cIniFile &a_IniFile) |
Public Member Functions inherited from cTerrainShapeGen | |
virtual | ~cTerrainShapeGen () |
Protected Types | |
typedef NOISE_DATATYPE | ChunkParam[5 *5] |
Type used for a single parameter across the entire (downscaled) chunk. More... | |
Protected Member Functions | |
void | CalcBiomeParamArrays (cChunkCoords a_ChunkCoords, ChunkParam &a_HeightAmp, ChunkParam &a_MidPoint) |
Calculates the biome-related parameters for the chunk. More... | |
void | GenerateNoiseArrayIfNeeded (cChunkCoords a_ChunkCoords) |
Generates the 3D noise array used for terrain generation (m_NoiseArray), unless the LastChunk coords are equal to coords given. More... | |
virtual void | GenShape (cChunkCoords a_ChunkCoords, cChunkDesc::Shape &a_Shape) override |
Generates the shape for the given chunk. More... | |
void | GetBiomeParams (EMCSBiome a_Biome, NOISE_DATATYPE &a_HeightAmp, NOISE_DATATYPE &a_MidPoint) |
Returns the parameters for the specified biome. More... | |
virtual void | InitializeShapeGen (cIniFile &a_IniFile) override |
Reads parameters from the ini file, prepares generator for use. More... | |
Static Protected Attributes | |
static const int | AVERAGING_SIZE = 9 |
Number of columns around the pixel to query for biomes for averaging. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from cTerrainShapeGen | |
static std::unique_ptr< cTerrainShapeGen > | CreateShapeGen (cIniFile &a_IniFile, cBiomeGen &a_BiomeGen, int a_Seed, bool &a_CacheOffByDefault) |
Creates the correct TerrainShapeGen descendant based on the ini file settings and the seed provided. More... | |
Definition at line 135 of file Noise3DGenerator.h.
|
protected |
Type used for a single parameter across the entire (downscaled) chunk.
Definition at line 148 of file Noise3DGenerator.h.
cBiomalNoise3DComposable::cBiomalNoise3DComposable | ( | int | a_Seed, |
cBiomeGen & | a_BiomeGen | ||
) |
Definition at line 509 of file Noise3DGenerator.cpp.
|
protected |
Calculates the biome-related parameters for the chunk.
Definition at line 649 of file Noise3DGenerator.cpp.
|
protected |
Generates the 3D noise array used for terrain generation (m_NoiseArray), unless the LastChunk coords are equal to coords given.
Definition at line 585 of file Noise3DGenerator.cpp.
|
overrideprotectedvirtual |
Generates the shape for the given chunk.
Implements cTerrainShapeGen.
Definition at line 778 of file Noise3DGenerator.cpp.
|
protected |
Returns the parameters for the specified biome.
Definition at line 696 of file Noise3DGenerator.cpp.
void cBiomalNoise3DComposable::Initialize | ( | cIniFile & | a_IniFile | ) |
Definition at line 533 of file Noise3DGenerator.cpp.
|
inlineoverrideprotectedvirtual |
Reads parameters from the ini file, prepares generator for use.
Reimplemented from cTerrainShapeGen.
Definition at line 208 of file Noise3DGenerator.h.
|
staticprotected |
Number of columns around the pixel to query for biomes for averaging.
Must be less than or equal to 16.
Definition at line 145 of file Noise3DGenerator.h.
|
protected |
Definition at line 184 of file Noise3DGenerator.h.
|
protected |
Definition at line 175 of file Noise3DGenerator.h.
|
protected |
Definition at line 176 of file Noise3DGenerator.h.
|
protected |
Heightmap-like noise used to provide variance for low-amplitude biomes.
Definition at line 161 of file Noise3DGenerator.h.
|
protected |
The underlying biome generator.
Definition at line 164 of file Noise3DGenerator.h.
|
protected |
Definition at line 179 of file Noise3DGenerator.h.
|
protected |
Definition at line 180 of file Noise3DGenerator.h.
|
protected |
Definition at line 181 of file Noise3DGenerator.h.
|
protected |
The noise that is used to choose between density noise A and B.
Definition at line 152 of file Noise3DGenerator.h.
|
protected |
Density 3D noise, variant A.
Definition at line 155 of file Noise3DGenerator.h.
|
protected |
Density 3D noise, variant B.
Definition at line 158 of file Noise3DGenerator.h.
|
protected |
Definition at line 170 of file Noise3DGenerator.h.
|
protected |
Definition at line 171 of file Noise3DGenerator.h.
|
protected |
Definition at line 172 of file Noise3DGenerator.h.
|
protected |
Definition at line 187 of file Noise3DGenerator.h.
|
protected |
Definition at line 188 of file Noise3DGenerator.h.
|
protected |
Block height of the sealevel, used for composing the terrain.
Definition at line 167 of file Noise3DGenerator.h.
|
protected |
Weights for summing up neighboring biomes.
Definition at line 191 of file Noise3DGenerator.h.
|
protected |
The sum of m_Weight[].
Definition at line 194 of file Noise3DGenerator.h.