public class Dungeon
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Dungeon.Mode
Different room generation sequence modes
|
static class |
Dungeon.Type
The type of rooms to generate
|
| Constructor and Description |
|---|
Dungeon(int size,
Dungeon.Type type,
Dungeon.Mode mode)
Stanard constructor, creates a new dungeon and then generates the contens
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
Natural(Dungeon.Type n)
Checks whether a type is natural
|
org.jgrapht.UndirectedGraph |
toGraph()
Creates a graph from the dungeon
|
java.lang.String |
toString() |
public Dungeon(int size,
Dungeon.Type type,
Dungeon.Mode mode)
size - maximum number of roomstype - how the rooms are to constructmode - determines room generation sequencepublic java.lang.String toString()
toString in class java.lang.Objectpublic org.jgrapht.UndirectedGraph toGraph()
public static boolean Natural(Dungeon.Type n)
n - type to check