|
| cRavine (int a_GridX, int a_GridZ, int a_OriginX, int a_OriginZ, int a_Size, cNoise &a_Noise) |
|
AString | ExportAsSVG (int a_Color, int a_OffsetX=0, int a_OffsetZ=0) const |
| Exports itself as a SVG line definition. More...
|
|
| cStructure (int a_GridX, int a_GridZ, int a_OriginX, int a_OriginZ) |
| Creates a structure that has its origin set at the specified coords. More...
|
|
virtual size_t | GetCacheCost (void) const |
| Returns the cost of keeping this structure in the cache. More...
|
|
virtual | ~cStructure () |
|
Definition at line 42 of file Ravines.cpp.
◆ Super
◆ cRavine()
cStructGenRavines::cRavine::cRavine |
( |
int |
a_GridX, |
|
|
int |
a_GridZ, |
|
|
int |
a_OriginX, |
|
|
int |
a_OriginZ, |
|
|
int |
a_Size, |
|
|
cNoise & |
a_Noise |
|
) |
| |
◆ DrawIntoChunk()
void cStructGenRavines::cRavine::DrawIntoChunk |
( |
cChunkDesc & |
a_ChunkDesc | ) |
|
|
overrideprotectedvirtual |
◆ ExportAsSVG()
AString cStructGenRavines::cRavine::ExportAsSVG |
( |
int |
a_Color, |
|
|
int |
a_OffsetX = 0 , |
|
|
int |
a_OffsetZ = 0 |
|
) |
| const |
Exports itself as a SVG line definition.
Definition at line 281 of file Ravines.cpp.
◆ FinishLinear()
void cStructGenRavines::cRavine::FinishLinear |
( |
void |
| ) |
|
|
private |
Linearly interpolates the points so that the maximum distance between two neighbors is max 1 block.
Definition at line 230 of file Ravines.cpp.
◆ GenerateBaseDefPoints()
void cStructGenRavines::cRavine::GenerateBaseDefPoints |
( |
int |
a_BlockX, |
|
|
int |
a_BlockZ, |
|
|
int |
a_Size, |
|
|
cNoise & |
a_Noise |
|
) |
| |
|
private |
Generates the shaping defpoints for the ravine, based on the ravine block coords and noise.
Definition at line 123 of file Ravines.cpp.
◆ RefineDefPoints()
Refines (adds and smooths) defpoints from a_Src into a_Dst.
Definition at line 170 of file Ravines.cpp.
◆ Smooth()
void cStructGenRavines::cRavine::Smooth |
( |
void |
| ) |
|
|
private |
◆ m_Points
The documentation for this class was generated from the following file: