Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
dungeongen.h File Reference
#include "voxel.h"
#include "noise.h"
#include "mapgen.h"
+ Include dependency graph for dungeongen.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  DungeonParams
 
class  DungeonGen
 

Macros

#define VMANIP_FLAG_DUNGEON_INSIDE   VOXELFLAG_CHECKED1
 
#define VMANIP_FLAG_DUNGEON_PRESERVE   VOXELFLAG_CHECKED2
 
#define VMANIP_FLAG_DUNGEON_UNTOUCHABLE
 

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)
 

Variables

NoiseParams nparams_dungeon_density
 
NoiseParams nparams_dungeon_alt_wall
 

Macro Definition Documentation

◆ VMANIP_FLAG_DUNGEON_INSIDE

◆ VMANIP_FLAG_DUNGEON_PRESERVE

#define VMANIP_FLAG_DUNGEON_PRESERVE   VOXELFLAG_CHECKED2

Referenced by DungeonGen::generate().

◆ VMANIP_FLAG_DUNGEON_UNTOUCHABLE

#define VMANIP_FLAG_DUNGEON_UNTOUCHABLE
Value:
(\
#define VMANIP_FLAG_DUNGEON_INSIDE
Definition dungeongen.h:12
#define VMANIP_FLAG_DUNGEON_PRESERVE
Definition dungeongen.h:13

Referenced by DungeonGen::makeCorridor(), DungeonGen::makeDungeon(), and DungeonGen::makeRoom().

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:

Variable Documentation

◆ nparams_dungeon_alt_wall

NoiseParams nparams_dungeon_alt_wall
extern

◆ nparams_dungeon_density

NoiseParams nparams_dungeon_density
extern