Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
dungeongen.cpp File Reference
#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"
+ Include dependency graph for dungeongen.cpp:

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)
 

Function Documentation

◆ dir_to_facedir()

int dir_to_facedir ( v3s16 d)

Referenced by DungeonGen::makeCorridor().

+ Here is the caller graph for this function:

◆ rand_ortho_dir()

v3s16 rand_ortho_dir ( PseudoRandom & random,
bool diagonal_dirs )

References dir(), and PseudoRandom::next().

Referenced by DungeonGen::randomizeDir().

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

◆ random_turn()

void random_turn ( PseudoRandom & random,
v3s16 & dir )

References dir(), PseudoRandom::range(), and turn_xz().

Referenced by DungeonGen::makeCorridor().

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

◆ turn_xz()

v3s16 turn_xz ( v3s16 olddir,
int t )

References dir().

Referenced by DungeonGen::makeCorridor(), and random_turn().

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