public class DenseRoomMapGenerator extends Object
Modifier and Type | Field and Description |
---|---|
int[][] |
environment |
protected int |
height |
char[][] |
map |
RNG |
rng |
protected int |
width |
Constructor and Description |
---|
DenseRoomMapGenerator() |
DenseRoomMapGenerator(int width,
int height) |
DenseRoomMapGenerator(int width,
int height,
RNG 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.
|
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
protected int width
protected int height
public DenseRoomMapGenerator()
public DenseRoomMapGenerator(int width, int height)
public DenseRoomMapGenerator(int width, int height, RNG rng)
public char[][] generate()
public int[][] getEnvironment()
Copyright © 2012–2016. All rights reserved.