com.planet_ink.coffee_mud.Libraries.layouts
Class DefaultLayoutNode
java.lang.Object
com.planet_ink.coffee_mud.Libraries.layouts.DefaultLayoutNode
- All Implemented Interfaces:
- AreaGenerationLibrary.LayoutNode
public class DefaultLayoutNode
- extends java.lang.Object
- implements AreaGenerationLibrary.LayoutNode
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
coord
public long[] coord
associatedRoom
public Room associatedRoom
links
public java.util.Hashtable<java.lang.Integer,AreaGenerationLibrary.LayoutNode> links
DefaultLayoutNode
public DefaultLayoutNode(long[] coord)
DefaultLayoutNode
public DefaultLayoutNode(long x,
long y)
room
public Room room()
- Specified by:
room in interface AreaGenerationLibrary.LayoutNode
setRoom
public void setRoom(Room room)
- Specified by:
setRoom in interface AreaGenerationLibrary.LayoutNode
coord
public long[] coord()
- Specified by:
coord in interface AreaGenerationLibrary.LayoutNode
tags
public java.util.Hashtable<AreaGenerationLibrary.LayoutTags,java.lang.String> tags()
- Specified by:
tags in interface AreaGenerationLibrary.LayoutNode
links
public java.util.Hashtable<java.lang.Integer,AreaGenerationLibrary.LayoutNode> links()
- Specified by:
links in interface AreaGenerationLibrary.LayoutNode
crossLink
public void crossLink(AreaGenerationLibrary.LayoutNode to)
- Specified by:
crossLink in interface AreaGenerationLibrary.LayoutNode
isFlagged
public boolean isFlagged(AreaGenerationLibrary.LayoutFlags flag)
- Specified by:
isFlagged in interface AreaGenerationLibrary.LayoutNode
getFlagRuns
public AreaGenerationLibrary.LayoutRuns getFlagRuns()
- Specified by:
getFlagRuns in interface AreaGenerationLibrary.LayoutNode
delLink
public void delLink(AreaGenerationLibrary.LayoutNode linkNode)
- Specified by:
delLink in interface AreaGenerationLibrary.LayoutNode
getLink
public AreaGenerationLibrary.LayoutNode getLink(int d)
- Specified by:
getLink in interface AreaGenerationLibrary.LayoutNode
isStreetLike
public boolean isStreetLike()
- Specified by:
isStreetLike in interface AreaGenerationLibrary.LayoutNode
deLink
public void deLink()
- Specified by:
deLink in interface AreaGenerationLibrary.LayoutNode
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
flag
public void flag(AreaGenerationLibrary.LayoutFlags flag)
- Specified by:
flag in interface AreaGenerationLibrary.LayoutNode
flagRun
public void flagRun(AreaGenerationLibrary.LayoutRuns run)
- Specified by:
flagRun in interface AreaGenerationLibrary.LayoutNode
type
public AreaGenerationLibrary.LayoutTypes type()
- Specified by:
type in interface AreaGenerationLibrary.LayoutNode
setExits
public void setExits(int[] dirs)
- Specified by:
setExits in interface AreaGenerationLibrary.LayoutNode
flagGateExit
public void flagGateExit(int dir)
- Specified by:
flagGateExit in interface AreaGenerationLibrary.LayoutNode
reType
public void reType(AreaGenerationLibrary.LayoutTypes type)
- Specified by:
reType in interface AreaGenerationLibrary.LayoutNode
getColorRepresentation
public java.lang.String getColorRepresentation(int line)
- Specified by:
getColorRepresentation in interface AreaGenerationLibrary.LayoutNode