DefaultLayoutNodepublic static interface AreaGenerationLibrary.LayoutNode
| Modifier and Type | Method | Description | 
|---|---|---|
| long[] | coord() | Returns x,y coordinates of this node. | 
| void | crossLink(AreaGenerationLibrary.LayoutNode to) | Uses this nodes coordinates, as well as the coordinates
 of the given connected node, this method will create a
 link between them of the appropriate direction
 see delLink(LayoutNode) | 
| void | deLink() | Removes all links from other nodes to this one, and removes
 all links from this node to others. | 
| void | delLink(AreaGenerationLibrary.LayoutNode linkNode) | Removes all directional links between this node and the
 given node. | 
| void | flag(AreaGenerationLibrary.LayoutFlags flag) | Flags this node with one of the visual layout flags,
 telling whether it is at an intersection, or on a
 corner, or something like that. | 
| void | flagRun(AreaGenerationLibrary.LayoutRuns dirs) | Flags this node as being part of a street-like run. | 
| java.lang.String | getColorRepresentation(char roomChar,
                      int line) | Returns one line of a 3x3 character representation. | 
| AreaGenerationLibrary.LayoutRuns | getFlagRuns() | Return whether this node is flagged as being part of a
 street-like run. | 
| AreaGenerationLibrary.LayoutNode | getLink(int d) | Returns a link from this node in the given direction. | 
| boolean | isFlagged(AreaGenerationLibrary.LayoutFlags flag) | Returns whether this node is flagged with one of the
 visual layout flags, telling whether it is an intersectino,
 or on a corner, or something like that. | 
| boolean | isStreetLike() | Returns true if the first two linked nodes to this
 node are in the same general direction, this making
 this node look like a street node. | 
| java.util.Map<java.lang.Integer,AreaGenerationLibrary.LayoutNode> | links() | Returns a map of directions to other layoutnodes. | 
| void | reType(AreaGenerationLibrary.LayoutTypes type) | Sets the layout type flag that this node represents,
 denoting whether it is a leaf, a street, or some other
 role. | 
| Room | room() | Returns the room object assigned to this node. | 
| void | setExits(int[] dirs) | Sets the exit available link directions, without setting
 the nodes they are linked to -- what good is this?
 Well, it sets the LayoutTags.NODEEXITS string, which
 makes some sense I guess. | 
| void | setRoom(Room room) | Sets the room object assigned to this node. | 
| java.util.Map<AreaGenerationLibrary.LayoutTags,java.lang.String> | tags() | Returns comma-delimited values of each LayoutTag type,
 through a may of layouttag to string mapping. | 
| AreaGenerationLibrary.LayoutTypes | type() | Returns the layout type flag that this node represents,
 denoting whether it is a leaf, a street, or some other
 role. | 
void crossLink(AreaGenerationLibrary.LayoutNode to)
to - the node to connect this one to.getLink(int), 
links(), 
deLink()void delLink(AreaGenerationLibrary.LayoutNode linkNode)
linkNode - the node to de-link from.getLink(int), 
links(), 
deLink()AreaGenerationLibrary.LayoutNode getLink(int d)
void deLink()
links(), 
getLink(int)java.util.Map<java.lang.Integer,AreaGenerationLibrary.LayoutNode> links()
deLink(), 
getLink(int)java.util.Map<AreaGenerationLibrary.LayoutTags,java.lang.String> tags()
AreaGenerationLibrary.LayoutTagslong[] coord()
boolean isStreetLike()
void flag(AreaGenerationLibrary.LayoutFlags flag)
flag - the flag to set.boolean isFlagged(AreaGenerationLibrary.LayoutFlags flag)
flag - the flag to check forvoid flagRun(AreaGenerationLibrary.LayoutRuns dirs)
dirs - the direction of the runAreaGenerationLibrary.LayoutRunsAreaGenerationLibrary.LayoutRuns getFlagRuns()
AreaGenerationLibrary.LayoutRunsAreaGenerationLibrary.LayoutTypes type()
AreaGenerationLibrary.LayoutTypesvoid reType(AreaGenerationLibrary.LayoutTypes type)
type - the type of this nodeAreaGenerationLibrary.LayoutTypesvoid setExits(int[] dirs)
dirs - the array of Direction codes to set.java.lang.String getColorRepresentation(char roomChar,
                                        int line)
roomChar - the char to use for this roomline - which line, 0, 1, or 2Room room()
setRoom(Room)