#include <noise.h>
◆ PseudoRandom()
PseudoRandom::PseudoRandom |
( |
s32 | seed_ = 0 | ) |
|
|
inline |
◆ getState()
s32 PseudoRandom::getState |
( |
| ) |
const |
|
inline |
◆ next()
u32 PseudoRandom::next |
( |
| ) |
|
|
inline |
References m_next, and RANDOM_RANGE.
Referenced by MapblockMeshGenerator::drawPlantlike(), MapblockMeshGenerator::drawPlantlikeQuad(), LuaPseudoRandom::l_next(), treegen::make_ltree(), CavesRandomWalk::makeCave(), CavesV6::makeCave(), DungeonGen::makeCorridor(), CavesRandomWalk::makeTunnel(), CavesV6::makeTunnel(), rand_ortho_dir(), range(), TestRandom::testPseudoRandom(), and TestRandom::testPseudoRandomRange().
◆ range()
s32 PseudoRandom::range |
( |
s32 | min, |
|
|
s32 | max ) |
|
inline |
References next(), and RANDOM_RANGE.
Referenced by CavesRandomWalk::carveRoute(), CavesV6::carveRoute(), DungeonGen::findPlaceForRoomDoor(), MapgenV6::generateCaves(), MapgenBasic::generateCavesRandomWalk(), MapgenBasic::generateDungeons(), LuaPseudoRandom::l_next(), treegen::make_jungletree(), treegen::make_ltree(), treegen::make_pine_tree(), treegen::make_tree(), CavesRandomWalk::makeCave(), CavesV6::makeCave(), MapgenV6::makeChunk(), DungeonGen::makeCorridor(), DungeonGen::makeDungeon(), CavesRandomWalk::makeTunnel(), CavesV6::makeTunnel(), MapgenV6::placeTreesAndJungleGrass(), random_turn(), TestRandom::testPseudoRandomRange(), TestCompression::testZlibLargeData(), TestCompression::testZstdLargeData(), treegen::tree_leaves_placement(), and treegen::tree_single_leaves_placement().
◆ seed()
void PseudoRandom::seed |
( |
s32 | seed | ) |
|
|
inline |
◆ m_next
◆ RANDOM_RANGE
const u32 PseudoRandom::RANDOM_RANGE = 32767 |
|
static |
The documentation for this class was generated from the following file: