public class DenseRoomMapGenerator extends java.lang.Object implements IDungeonGenerator
Modifier and Type | Field and Description |
---|---|
int[][] |
environment |
protected int |
height |
char[][] |
map |
IRNG |
rng |
protected int |
width |
Constructor and Description |
---|
DenseRoomMapGenerator() |
DenseRoomMapGenerator(int width,
int height) |
DenseRoomMapGenerator(int width,
int height,
IRNG rng) |
Modifier and Type | Method and Description |
---|---|
char[][] |
generate()
Generate a map as a 2D char array using the width and height specified in the constructor.
|
char[][] |
getDungeon()
Gets the most recently-produced dungeon as a 2D char array, usually produced by calling
IDungeonGenerator.generate() or
some similar method present in a specific implementation. |
int[][] |
getEnvironment()
Gets a 2D array of int constants, each representing a type of environment corresponding to a static field of
MixedGenerator.
|
public char[][] map
public int[][] environment
public IRNG rng
protected int width
protected int height
public DenseRoomMapGenerator()
public DenseRoomMapGenerator(int width, int height)
public DenseRoomMapGenerator(int width, int height, IRNG rng)
public char[][] getDungeon()
IDungeonGenerator
IDungeonGenerator.generate()
or
some similar method present in a specific implementation. This normally passes a direct reference and not a copy,
so you can normally modify the returned array to propagate changes back into this IDungeonGenerator.getDungeon
in interface IDungeonGenerator
public char[][] generate()
generate
in interface IDungeonGenerator
public int[][] getEnvironment()
Copyright © Eben Howard 2012–2022. All rights reserved.