public class BasicCaveGenerator extends java.lang.Object implements IDungeonGenerator
Modifier and Type | Field and Description |
---|---|
char[][] |
dungeon |
int |
height |
IRNG |
random |
int |
width |
Constructor and Description |
---|
BasicCaveGenerator() |
BasicCaveGenerator(int width,
int height) |
BasicCaveGenerator(int width,
int height,
IRNG random) |
Modifier and Type | Method and Description |
---|---|
char[][] |
generate()
Generates a dungeon or other map as a 2D char array.
|
char[][] |
getDungeon()
Gets the most recently-produced dungeon as a 2D char array, usually produced by calling
generate() or
some similar method present in a specific implementation. |
public int width
public int height
public IRNG random
public char[][] dungeon
public BasicCaveGenerator()
public BasicCaveGenerator(int width, int height)
public BasicCaveGenerator(int width, int height, IRNG random)
public char[][] generate()
generate
in interface IDungeonGenerator
public char[][] getDungeon()
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
Copyright © Eben Howard 2012–2022. All rights reserved.