AreaGenerationLibrary.LayoutManager
public class GridCityLayout extends AbstractLayout
Constructor | Description |
---|---|
GridCityLayout() |
Modifier and Type | Method | Description |
---|---|---|
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, getRunDirection
public java.lang.String name()
AreaGenerationLibrary.LayoutManager
name
in interface AreaGenerationLibrary.LayoutManager
name
in class AbstractLayout
public java.util.List<AreaGenerationLibrary.LayoutNode> generate(int num, int dir)
AreaGenerationLibrary.LayoutManager
generate
in interface AreaGenerationLibrary.LayoutManager
generate
in class AbstractLayout
num
- the number of nodes to generatedir
- the direction of entry into this group of nodes.AreaGenerationLibrary.LayoutNode