Classes | |
struct | TreeDef |
Enumerations | |
enum | error { SUCCESS , UNBALANCED_BRACKETS } |
Functions | |
static void | tree_trunk_placement (MMVManip &vmanip, v3f p0, const TreeDef &def) |
static void | tree_leaves_placement (MMVManip &vmanip, v3f p0, PseudoRandom ps, const TreeDef &def) |
static void | tree_single_leaves_placement (MMVManip &vmanip, v3f p0, PseudoRandom ps, const TreeDef &def) |
static void | tree_fruit_placement (MMVManip &vmanip, v3f p0, const TreeDef &def) |
static void | setRotationAxisRadians (core::matrix4 &M, float angle, v3f axis) |
static v3f | transposeMatrix (const core::matrix4 &M, v3f v) |
void | make_tree (MMVManip &vmanip, v3s16 p0, bool is_apple_tree, const NodeDefManager *ndef, s32 seed) |
treegen::error | spawn_ltree (ServerMap *map, v3s16 p0, const TreeDef &tree_definition) |
treegen::error | make_ltree (MMVManip &vmanip, v3s16 p0, const TreeDef &tree_definition) |
void | make_jungletree (MMVManip &vmanip, v3s16 p0, const NodeDefManager *ndef, s32 seed) |
void | make_pine_tree (MMVManip &vmanip, v3s16 p0, const NodeDefManager *ndef, s32 seed) |
enum treegen::error |
void treegen::make_jungletree | ( | MMVManip & | vmanip, |
v3s16 | p0, | ||
const NodeDefManager * | ndef, | ||
s32 | seed ) |
References VoxelArea::contains(), CONTENT_AIR, CONTENT_IGNORE, errorstream, MapNode::getContent(), NodeDefManager::getId(), VoxelArea::getVolume(), VoxelArea::index(), VoxelManipulator::m_area, VoxelManipulator::m_data, VoxelArea::MaxEdge, VoxelArea::MinEdge, p(), and PseudoRandom::range().
Referenced by MapgenV6::placeTreesAndJungleGrass().
treegen::error treegen::make_ltree | ( | MMVManip & | vmanip, |
v3s16 | p0, | ||
const TreeDef & | tree_definition ) |
References treegen::TreeDef::angle, dir(), treegen::TreeDef::explicit_seed, treegen::TreeDef::initial_axiom, treegen::TreeDef::iterations, treegen::TreeDef::iterations_random_level, PseudoRandom::next(), PseudoRandom::range(), treegen::TreeDef::rules_a, treegen::TreeDef::rules_b, treegen::TreeDef::rules_c, treegen::TreeDef::rules_d, treegen::TreeDef::seed, setRotationAxisRadians(), SUCCESS, treegen::TreeDef::thin_branches, transposeMatrix(), tree_fruit_placement(), tree_leaves_placement(), tree_single_leaves_placement(), tree_trunk_placement(), treegen::TreeDef::trunk_type, and UNBALANCED_BRACKETS.
Referenced by DecoLSystem::generate(), ModApiEnvVM::l_spawn_tree(), and spawn_ltree().
void treegen::make_pine_tree | ( | MMVManip & | vmanip, |
v3s16 | p0, | ||
const NodeDefManager * | ndef, | ||
s32 | seed ) |
References VoxelArea::contains(), CONTENT_AIR, CONTENT_IGNORE, errorstream, MapNode::getContent(), NodeDefManager::getId(), VoxelArea::getVolume(), VoxelArea::index(), VoxelManipulator::m_area, VoxelManipulator::m_data, VoxelArea::MaxEdge, VoxelArea::MinEdge, p(), and PseudoRandom::range().
Referenced by MapgenV6::placeTreesAndJungleGrass().
void treegen::make_tree | ( | MMVManip & | vmanip, |
v3s16 | p0, | ||
bool | is_apple_tree, | ||
const NodeDefManager * | ndef, | ||
s32 | seed ) |
References VoxelArea::contains(), CONTENT_AIR, CONTENT_IGNORE, errorstream, MapNode::getContent(), NodeDefManager::getId(), VoxelArea::getVolume(), VoxelArea::index(), VoxelManipulator::m_area, VoxelManipulator::m_data, VoxelArea::MaxEdge, VoxelArea::MinEdge, p(), and PseudoRandom::range().
Referenced by MapgenV6::placeTreesAndJungleGrass().
|
static |
treegen::error treegen::spawn_ltree | ( | ServerMap * | map, |
v3s16 | p0, | ||
const TreeDef & | tree_definition ) |
References voxalgo::blit_back_with_light(), Map::dispatchEvent(), getNodeBlockPos(), MMVManip::initialEmerge(), make_ltree(), MEET_OTHER, SUCCESS, and MapEditEvent::type.
Referenced by ModApiEnv::l_spawn_tree().
References VoxelArea::contains(), CONTENT_AIR, CONTENT_IGNORE, treegen::TreeDef::fruitnode, MapNode::getContent(), VoxelArea::index(), VoxelManipulator::m_area, VoxelManipulator::m_data, and myround().
Referenced by make_ltree().
|
static |
References VoxelArea::contains(), CONTENT_AIR, CONTENT_IGNORE, treegen::TreeDef::fruit_chance, treegen::TreeDef::fruitnode, MapNode::getContent(), VoxelArea::index(), treegen::TreeDef::leaves2_chance, treegen::TreeDef::leaves2node, treegen::TreeDef::leavesnode, VoxelManipulator::m_area, VoxelManipulator::m_data, myround(), and PseudoRandom::range().
Referenced by make_ltree().
|
static |
References VoxelArea::contains(), CONTENT_AIR, CONTENT_IGNORE, MapNode::getContent(), VoxelArea::index(), treegen::TreeDef::leaves2_chance, treegen::TreeDef::leaves2node, treegen::TreeDef::leavesnode, VoxelManipulator::m_area, VoxelManipulator::m_data, myround(), and PseudoRandom::range().
Referenced by make_ltree().
References VoxelArea::contains(), CONTENT_AIR, CONTENT_IGNORE, treegen::TreeDef::fruitnode, MapNode::getContent(), VoxelArea::index(), treegen::TreeDef::leaves2node, treegen::TreeDef::leavesnode, VoxelManipulator::m_area, VoxelManipulator::m_data, myround(), and treegen::TreeDef::trunknode.
Referenced by make_ltree().