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)
Standard constructor, creates a new dungeon 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static boolean | 
Experimental(Dungeon.Type n)
Checks whether a type is experimental 
 | 
void | 
generate(int size,
        Dungeon.Type type,
        Dungeon.Mode mode)
Generates the dungeons contents 
 | 
java.util.HashMap | 
GetGreedyMap()
Returns the greedy map 
 | 
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)
size - maximum number of roomstype - how the rooms are to constructpublic java.util.HashMap GetGreedyMap()
public void generate(int size,
                     Dungeon.Type type,
                     Dungeon.Mode mode)
size - Size of the dungeontype - type of environmentmode - generation modepublic java.lang.String toString()
toString in class java.lang.Objectpublic org.jgrapht.UndirectedGraph toGraph()
public static boolean Natural(Dungeon.Type n)
n - type to checkpublic static boolean Experimental(Dungeon.Type n)
n - type to check