public class ThinDungeonGenerator extends SectionDungeonGenerator
SectionDungeonGenerator.FillEffect
Modifier and Type | Field and Description |
---|---|
static int |
CAVE_WALL_CHAOTIC |
static int |
CAVE_WALL_EXPAND |
static int |
CAVE_WALL_NORMAL |
static int |
CAVE_WALL_RETRACT |
static int |
CORRIDOR_WALL_CHAOTIC |
static int |
CORRIDOR_WALL_EXPAND |
static int |
CORRIDOR_WALL_NORMAL |
static int |
CORRIDOR_WALL_RETRACT |
static int |
ROOM_WALL_CHAOTIC |
static int |
ROOM_WALL_EXPAND |
static int |
ROOM_WALL_NORMAL |
static int |
ROOM_WALL_RETRACT |
int |
wallShapes |
ALL, CAVE, caveFX, CORRIDOR, corridorFX, deepLakeGlyph, doorFX, dungeon, environmentType, finder, height, lakeFX, markStairsDown, markStairsUp, mazeFX, placement, rebuildSeed, rng, ROOM, roomFX, seedFixed, shallowLakeGlyph, stairsDown, stairsUp, utility, width
Constructor and Description |
---|
ThinDungeonGenerator()
Make a DungeonGenerator with a LightRNG using a random seed, height 40, and width 40.
|
ThinDungeonGenerator(int width,
int height)
Make a DungeonGenerator with the given height and width; the RNG used for generating a dungeon and
adding features will be a LightRNG using a random seed.
|
ThinDungeonGenerator(int width,
int height,
int roomShape,
int corridorShape,
int caveShape)
Make a DungeonGenerator with the given height and width; the RNG used for generating a dungeon and
adding features will be a LightRNG using a random seed.
|
ThinDungeonGenerator(int width,
int height,
IRNG rng)
Make a DungeonGenerator with the given height, width, and RNG.
|
ThinDungeonGenerator(int width,
int height,
IRNG rng,
int roomShape,
int corridorShape,
int caveShape)
Make a DungeonGenerator with the given height, width, and RNG for generating random features.
|
ThinDungeonGenerator(ThinDungeonGenerator copying)
Copies all fields from copying and makes a new DungeonGenerator.
|
Modifier and Type | Method and Description |
---|---|
SectionDungeonGenerator |
addDoors(int percentage,
boolean doubleDoors)
Doors are not supported by this class.
|
protected char[][] |
innerGenerate() |
char[][] |
makeThin() |
void |
removeHardCorners()
Modifies this ThinDungeonGenerator to remove corners between thin walls (truncating the corners, effectively).
|
java.lang.String |
toString()
Provides a string representation of the latest generated dungeon.
|
addBoulders, addGrass, addLake, addLake, addMaze, addStairs, addStairs, addTraps, addWater, addWater, clearEffects, generate, generate, generate, generateRespectingStairs, getBareDungeon, getDungeon, getHeight, getRebuildSeed, getWidth, innerGenerate, makeDoors, makeLake, removeAdjacent, removeAdjacent, removeNearby, setDungeon, viableDoorways
public static final int ROOM_WALL_RETRACT
public static final int ROOM_WALL_NORMAL
public static final int ROOM_WALL_EXPAND
public static final int ROOM_WALL_CHAOTIC
public static final int CORRIDOR_WALL_RETRACT
public static final int CORRIDOR_WALL_NORMAL
public static final int CORRIDOR_WALL_EXPAND
public static final int CORRIDOR_WALL_CHAOTIC
public static final int CAVE_WALL_RETRACT
public static final int CAVE_WALL_NORMAL
public static final int CAVE_WALL_EXPAND
public static final int CAVE_WALL_CHAOTIC
public int wallShapes
public ThinDungeonGenerator()
public ThinDungeonGenerator(int width, int height)
width
- The width of the dungeon in cellsheight
- The height of the dungeon in cellspublic ThinDungeonGenerator(int width, int height, IRNG rng)
width
- The width of the dungeon in cellsheight
- The height of the dungeon in cellsrng
- The RNG to use for all purposes in this class; if it is a StatefulRNG, then it will be used as-is,public ThinDungeonGenerator(int width, int height, int roomShape, int corridorShape, int caveShape)
SeededNoise
.
width
- The width of the dungeon in cellsheight
- The height of the dungeon in cellsroomShape
- expected to be an int constant: ROOM_WALL_EXPAND, ROOM_WALL_RETRACT, or ROOM_WALL_CHAOTICcorridorShape
- expected to be an int constant: CORRIDOR_WALL_EXPAND, CORRIDOR_WALL_RETRACT, or CORRIDOR_WALL_CHAOTICcaveShape
- expected to be an int constant: CAVE_WALL_EXPAND, CAVE_WALL_RETRACT, or CAVE_WALL_CHAOTICpublic ThinDungeonGenerator(int width, int height, IRNG rng, int roomShape, int corridorShape, int caveShape)
SeededNoise
.
width
- The width of the dungeon in cellsheight
- The height of the dungeon in cellsroomShape
- expected to be an int constant: ROOM_WALL_EXPAND, ROOM_WALL_RETRACT, or ROOM_WALL_CHAOTICcorridorShape
- expected to be an int constant: CORRIDOR_WALL_EXPAND, CORRIDOR_WALL_RETRACT, or CORRIDOR_WALL_CHAOTICcaveShape
- expected to be an int constant: CAVE_WALL_EXPAND, CAVE_WALL_RETRACT, or CAVE_WALL_CHAOTICrng
- The RNG to use for all purposes in this class; if it is a StatefulRNG, then it will be used as-is,public ThinDungeonGenerator(ThinDungeonGenerator copying)
copying
- the DungeonGenerator to copypublic SectionDungeonGenerator addDoors(int percentage, boolean doubleDoors)
addDoors
in class SectionDungeonGenerator
percentage
- ignored.doubleDoors
- ignored.public char[][] makeThin()
protected char[][] innerGenerate()
innerGenerate
in class SectionDungeonGenerator
public void removeHardCorners()
public java.lang.String toString()
toString
in class SectionDungeonGenerator
Copyright © Eben Howard 2012–2022. All rights reserved.