Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Types | List of all members
cStructGenWormNestCaves::cCaveSystem Class Reference

A collection of connected tunnels, possibly branching. More...

Inheritance diagram for cStructGenWormNestCaves::cCaveSystem:
Inheritance graph
[legend]
Collaboration diagram for cStructGenWormNestCaves::cCaveSystem:
Collaboration graph
[legend]

Public Member Functions

 cCaveSystem (int a_GridX, int a_GridZ, int a_OriginX, int a_OriginZ, int a_MaxOffset, int a_Size, cNoise &a_Noise)
 
virtual ~cCaveSystem () override
 
- Public Member Functions inherited from cGridStructGen::cStructure
 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 ()
 

Public Attributes

int m_BlockX
 
int m_BlockZ
 
- Public Attributes inherited from cGridStructGen::cStructure
int m_GridX
 The grid point for which the structure is generated. More...
 
int m_GridZ
 
int m_OriginX
 The origin (the coords for which the structure is generated) More...
 
int m_OriginZ
 

Protected Member Functions

void Clear (void)
 
virtual void DrawIntoChunk (cChunkDesc &a_ChunkDesc) override
 Draws self into the specified chunk. More...
 
void GenerateTunnelsFromPoint (int a_OriginX, int a_OriginY, int a_OriginZ, cNoise &a_Noise, int a_Segments)
 Generates a_Segment successive tunnels, with possible branches. More...
 
int GetRadius (cNoise &a_Noise, int a_OriginX, int a_OriginY, int a_OriginZ)
 Returns a radius based on the location provided. More...
 

Protected Attributes

int m_Size
 
cCaveTunnels m_Tunnels
 

Private Types

using Super = cGridStructGen::cStructure
 

Detailed Description

A collection of connected tunnels, possibly branching.

Definition at line 120 of file Caves.cpp.

Member Typedef Documentation

◆ Super

Definition at line 123 of file Caves.cpp.

Constructor & Destructor Documentation

◆ cCaveSystem()

cStructGenWormNestCaves::cCaveSystem::cCaveSystem ( int  a_GridX,
int  a_GridZ,
int  a_OriginX,
int  a_OriginZ,
int  a_MaxOffset,
int  a_Size,
cNoise a_Noise 
)

Definition at line 580 of file Caves.cpp.

◆ ~cCaveSystem()

cStructGenWormNestCaves::cCaveSystem::~cCaveSystem ( )
overridevirtual

Definition at line 605 of file Caves.cpp.

Member Function Documentation

◆ Clear()

void cStructGenWormNestCaves::cCaveSystem::Clear ( void  )
protected

Definition at line 631 of file Caves.cpp.

◆ DrawIntoChunk()

void cStructGenWormNestCaves::cCaveSystem::DrawIntoChunk ( cChunkDesc a_ChunkDesc)
overrideprotectedvirtual

Draws self into the specified chunk.

Implements cGridStructGen::cStructure.

Definition at line 614 of file Caves.cpp.

◆ GenerateTunnelsFromPoint()

void cStructGenWormNestCaves::cCaveSystem::GenerateTunnelsFromPoint ( int  a_OriginX,
int  a_OriginY,
int  a_OriginZ,
cNoise a_Noise,
int  a_Segments 
)
protected

Generates a_Segment successive tunnels, with possible branches.

Generates the same output for the same [x, y, z, a_Segments]

Definition at line 644 of file Caves.cpp.

◆ GetRadius()

int cStructGenWormNestCaves::cCaveSystem::GetRadius ( cNoise a_Noise,
int  a_OriginX,
int  a_OriginY,
int  a_OriginZ 
)
protected

Returns a radius based on the location provided.

Definition at line 670 of file Caves.cpp.

Member Data Documentation

◆ m_BlockX

int cStructGenWormNestCaves::cCaveSystem::m_BlockX

Definition at line 128 of file Caves.cpp.

◆ m_BlockZ

int cStructGenWormNestCaves::cCaveSystem::m_BlockZ

Definition at line 129 of file Caves.cpp.

◆ m_Size

int cStructGenWormNestCaves::cCaveSystem::m_Size
protected

Definition at line 135 of file Caves.cpp.

◆ m_Tunnels

cCaveTunnels cStructGenWormNestCaves::cCaveSystem::m_Tunnels
protected

Definition at line 136 of file Caves.cpp.


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