|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectrlgamekit.map.generators.AbstractMapGenerator
rlgamekit.map.generators.Dungeon
public class Dungeon
This generator creates a classical rooms and corridor maze. The rooms are positioned in a grid with random deviations.
MapGenerator| Constructor Summary | |
|---|---|
Dungeon(java.lang.String mapPath,
java.util.Properties props)
Creates a new instance of Dungeon. |
|
Dungeon(java.lang.String mapPath,
java.lang.String propsfile)
Creates a new instance of Dungeon. |
|
| Method Summary | |
|---|---|
LayeredMap |
generate(int width,
int height)
Generate a new map of the "rooms and corridors" type. |
java.util.ArrayList<java.awt.Rectangle> |
getRooms()
Get room coordinates and sizes after a map has been generated. |
| Methods inherited from class rlgamekit.map.generators.AbstractMapGenerator |
|---|
getInt, getInt, getIntegers |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Dungeon(java.lang.String mapPath,
java.lang.String propsfile)
public Dungeon(java.lang.String mapPath,
java.util.Properties props)
| Method Detail |
|---|
public java.util.ArrayList<java.awt.Rectangle> getRooms()
public LayeredMap generate(int width,
int height)
width - desired map widthheight - desired map height
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||