AreaGenerationLibrary.LayoutManagerpublic class MazeLayout extends AbstractLayout
| Constructor | Description |
|---|---|
MazeLayout() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
fillMaze(LayoutSet lSet,
AreaGenerationLibrary.LayoutNode p,
int width,
int height) |
|
java.util.List<AreaGenerationLibrary.LayoutNode> |
generate(int num,
int dir) |
Generates a list of layout nodes, each
of which reprents a single room in the area.
|
java.lang.String |
name() |
The name of the layout manager
|
diff, getDirection, getRunDirectionpublic java.lang.String name()
AreaGenerationLibrary.LayoutManagername in interface AreaGenerationLibrary.LayoutManagername in class AbstractLayoutpublic void fillMaze(LayoutSet lSet, AreaGenerationLibrary.LayoutNode p, int width, int height)
public java.util.List<AreaGenerationLibrary.LayoutNode> generate(int num, int dir)
AreaGenerationLibrary.LayoutManagergenerate in interface AreaGenerationLibrary.LayoutManagergenerate in class AbstractLayoutnum - the number of nodes to generatedir - the direction of entry into this group of nodes.AreaGenerationLibrary.LayoutNode