#include "dungeongen.h"
#include <cmath>
#include "mapgen.h"
#include "voxel.h"
#include "noise.h"
#include "mapblock.h"
#include "mapnode.h"
#include "map.h"
#include "nodedef.h"
#include "settings.h"
Functions | |
v3s16 | rand_ortho_dir (PseudoRandom &random, bool diagonal_dirs) |
v3s16 | turn_xz (v3s16 olddir, int t) |
void | random_turn (PseudoRandom &random, v3s16 &dir) |
int | dir_to_facedir (v3s16 d) |
int dir_to_facedir | ( | v3s16 | d | ) |
v3s16 rand_ortho_dir | ( | PseudoRandom & | random, |
bool | diagonal_dirs ) |
References dir(), and PseudoRandom::next().
Referenced by DungeonGen::randomizeDir().
void random_turn | ( | PseudoRandom & | random, |
v3s16 & | dir ) |
References dir(), PseudoRandom::range(), and turn_xz().
Referenced by DungeonGen::makeCorridor().
References dir().
Referenced by DungeonGen::makeCorridor(), and random_turn().