com.planet_ink.coffee_mud.Libraries.layouts
Class DefaultLayoutNode

java.lang.Object
  extended by com.planet_ink.coffee_mud.Libraries.layouts.DefaultLayoutNode
All Implemented Interfaces:
AreaGenerationLibrary.LayoutNode

public class DefaultLayoutNode
extends java.lang.Object
implements AreaGenerationLibrary.LayoutNode


Field Summary
 Room associatedRoom
           
 long[] coord
           
 java.util.Hashtable<java.lang.Integer,AreaGenerationLibrary.LayoutNode> links
           
 
Constructor Summary
DefaultLayoutNode(long[] coord)
           
DefaultLayoutNode(long x, long y)
           
 
Method Summary
 long[] coord()
           
 void crossLink(AreaGenerationLibrary.LayoutNode to)
           
 void deLink()
           
 void delLink(AreaGenerationLibrary.LayoutNode linkNode)
           
 void flag(AreaGenerationLibrary.LayoutFlags flag)
           
 void flagGateExit(int dir)
           
 void flagRun(AreaGenerationLibrary.LayoutRuns run)
           
 java.lang.String getColorRepresentation(int line)
           
 AreaGenerationLibrary.LayoutRuns getFlagRuns()
           
 AreaGenerationLibrary.LayoutNode getLink(int d)
           
 boolean isFlagged(AreaGenerationLibrary.LayoutFlags flag)
           
 boolean isStreetLike()
           
 java.util.Hashtable<java.lang.Integer,AreaGenerationLibrary.LayoutNode> links()
           
 void reType(AreaGenerationLibrary.LayoutTypes type)
           
 Room room()
           
 void setExits(int[] dirs)
           
 void setRoom(Room room)
           
 java.util.Hashtable<AreaGenerationLibrary.LayoutTags,java.lang.String> tags()
           
 java.lang.String toString()
           
 AreaGenerationLibrary.LayoutTypes type()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

coord

public long[] coord

associatedRoom

public Room associatedRoom

links

public java.util.Hashtable<java.lang.Integer,AreaGenerationLibrary.LayoutNode> links
Constructor Detail

DefaultLayoutNode

public DefaultLayoutNode(long[] coord)

DefaultLayoutNode

public DefaultLayoutNode(long x,
                         long y)
Method Detail

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