Minetest 5.10.0-dev
 
Loading...
Searching...
No Matches
CavernsNoise Class Reference

#include <cavegen.h>

+ Collaboration diagram for CavernsNoise:

Public Member Functions

 CavernsNoise (const NodeDefManager *nodedef, v3s16 chunksize, NoiseParams *np_cavern, s32 seed, float cavern_limit, float cavern_taper, float cavern_threshold)
 
 ~CavernsNoise ()
 
bool generateCaverns (MMVManip *vm, v3s16 nmin, v3s16 nmax)
 

Private Attributes

const NodeDefManagerm_ndef
 
v3s16 m_csize
 
float m_cavern_limit
 
float m_cavern_taper
 
float m_cavern_threshold
 
u16 m_ystride
 
u16 m_zstride_1d
 
Noisenoise_cavern
 
content_t c_water_source
 
content_t c_lava_source
 

Constructor & Destructor Documentation

◆ CavernsNoise()

CavernsNoise::CavernsNoise ( const NodeDefManager * nodedef,
v3s16 chunksize,
NoiseParams * np_cavern,
s32 seed,
float cavern_limit,
float cavern_taper,
float cavern_threshold )

References c_lava_source, c_water_source, CONTENT_AIR, CONTENT_IGNORE, NodeDefManager::getId(), m_cavern_limit, m_cavern_taper, m_cavern_threshold, m_csize, m_ndef, m_ystride, m_zstride_1d, and noise_cavern.

+ Here is the call graph for this function:

◆ ~CavernsNoise()

CavernsNoise::~CavernsNoise ( )

References noise_cavern.

Member Function Documentation

◆ generateCaverns()

bool CavernsNoise::generateCaverns ( MMVManip * vm,
v3s16 nmin,
v3s16 nmax )

References VoxelArea::add_y(), CONTENT_AIR, NodeDefManager::get(), MapNode::getContent(), VoxelArea::getExtent(), VoxelArea::index(), ContentFeatures::is_ground_content, VoxelManipulator::m_area, m_cavern_limit, m_cavern_taper, m_cavern_threshold, m_csize, VoxelManipulator::m_data, m_ndef, m_ystride, m_zstride_1d, MYMIN, noise_cavern, Noise::perlinMap3D(), and Noise::result.

Referenced by MapgenBasic::generateCavernsNoise().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ c_lava_source

content_t CavernsNoise::c_lava_source
private

Referenced by CavernsNoise().

◆ c_water_source

content_t CavernsNoise::c_water_source
private

Referenced by CavernsNoise().

◆ m_cavern_limit

float CavernsNoise::m_cavern_limit
private

Referenced by CavernsNoise(), and generateCaverns().

◆ m_cavern_taper

float CavernsNoise::m_cavern_taper
private

Referenced by CavernsNoise(), and generateCaverns().

◆ m_cavern_threshold

float CavernsNoise::m_cavern_threshold
private

Referenced by CavernsNoise(), and generateCaverns().

◆ m_csize

v3s16 CavernsNoise::m_csize
private

Referenced by CavernsNoise(), and generateCaverns().

◆ m_ndef

const NodeDefManager* CavernsNoise::m_ndef
private

Referenced by CavernsNoise(), and generateCaverns().

◆ m_ystride

u16 CavernsNoise::m_ystride
private

Referenced by CavernsNoise(), and generateCaverns().

◆ m_zstride_1d

u16 CavernsNoise::m_zstride_1d
private

Referenced by CavernsNoise(), and generateCaverns().

◆ noise_cavern

Noise* CavernsNoise::noise_cavern
private

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