AreaGenerationLibrary.LayoutManager
BoxCitySquareLayout
public class BoxCityLayout extends AbstractLayout
Constructor | Description |
---|---|
BoxCityLayout() |
Modifier and Type | Method | Description |
---|---|---|
protected void |
drawABox(LayoutSet lSet,
int width,
int height) |
|
boolean |
fillMaze(LayoutSet lSet,
AreaGenerationLibrary.LayoutNode p,
int dir) |
|
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.
|
void |
halfLineE(LayoutSet lSet,
int startY,
int endY,
int width,
java.util.TreeSet<java.lang.Integer> yposUsed) |
|
void |
halfLineN(LayoutSet lSet,
int startX,
int endX,
int height,
java.util.TreeSet<java.lang.Integer> xposUsed) |
|
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 void halfLineN(LayoutSet lSet, int startX, int endX, int height, java.util.TreeSet<java.lang.Integer> xposUsed)
public void halfLineE(LayoutSet lSet, int startY, int endY, int width, java.util.TreeSet<java.lang.Integer> yposUsed)
public boolean fillMaze(LayoutSet lSet, AreaGenerationLibrary.LayoutNode p, int dir)
protected void drawABox(LayoutSet lSet, int width, int height)
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