A single non-branching tunnel of a WormNestCave.
More...
|
| cCaveTunnel (int a_BlockStartX, int a_BlockStartY, int a_BlockStartZ, int a_StartRadius, int a_BlockEndX, int a_BlockEndY, int a_BlockEndZ, int a_EndRadius, cNoise &a_Noise) |
|
AString | ExportAsSVG (int a_Color, int a_OffsetX, int a_OffsetZ) const |
|
void | ProcessChunk (int a_ChunkX, int a_ChunkZ, cChunkDef::BlockTypes &a_BlockTypes, cChunkDesc::BlockNibbleBytes &a_BlockMetas, cChunkDef::HeightMap &a_HeightMap) |
| Carves the tunnel into the chunk specified. More...
|
|
A single non-branching tunnel of a WormNestCave.
Definition at line 69 of file Caves.cpp.
◆ cCaveTunnel()
cCaveTunnel::cCaveTunnel |
( |
int |
a_BlockStartX, |
|
|
int |
a_BlockStartY, |
|
|
int |
a_BlockStartZ, |
|
|
int |
a_StartRadius, |
|
|
int |
a_BlockEndX, |
|
|
int |
a_BlockEndY, |
|
|
int |
a_BlockEndZ, |
|
|
int |
a_EndRadius, |
|
|
cNoise & |
a_Noise |
|
) |
| |
◆ CalcBoundingBox()
void cCaveTunnel::CalcBoundingBox |
( |
void |
| ) |
|
|
private |
Calculates the bounding box of the points present.
Definition at line 437 of file Caves.cpp.
◆ ExportAsSVG()
AString cCaveTunnel::ExportAsSVG |
( |
int |
a_Color, |
|
|
int |
a_OffsetX, |
|
|
int |
a_OffsetZ |
|
) |
| const |
◆ FinishLinear()
void cCaveTunnel::FinishLinear |
( |
void |
| ) |
|
|
private |
Linearly interpolates the points so that the maximum distance between two neighbors is max 1 block.
Definition at line 308 of file Caves.cpp.
◆ ProcessChunk()
Carves the tunnel into the chunk specified.
Definition at line 458 of file Caves.cpp.
◆ Randomize()
void cCaveTunnel::Randomize |
( |
cNoise & |
a_Noise | ) |
|
|
private |
Generates the shaping defpoints for the cave, based on the cave block coords and noise.
Definition at line 191 of file Caves.cpp.
◆ RefineDefPoints()
Refines (adds and smooths) defpoints from a_Src into a_Dst; returns false if no refinement possible (segments too short)
Definition at line 234 of file Caves.cpp.
◆ Smooth()
void cCaveTunnel::Smooth |
( |
void |
| ) |
|
|
private |
◆ m_MaxBlockX
int cCaveTunnel::m_MaxBlockX |
|
private |
◆ m_MaxBlockY
int cCaveTunnel::m_MaxBlockY |
|
private |
◆ m_MaxBlockZ
int cCaveTunnel::m_MaxBlockZ |
|
private |
◆ m_MinBlockX
int cCaveTunnel::m_MinBlockX |
|
private |
◆ m_MinBlockY
int cCaveTunnel::m_MinBlockY |
|
private |
◆ m_MinBlockZ
int cCaveTunnel::m_MinBlockZ |
|
private |
◆ m_Points
The documentation for this class was generated from the following file: