com.planet_ink.coffee_mud.Libraries.layouts
Class LayoutSet

java.lang.Object
  extended by com.planet_ink.coffee_mud.Libraries.layouts.LayoutSet

public class LayoutSet
extends java.lang.Object


Constructor Summary
LayoutSet(java.util.List<AreaGenerationLibrary.LayoutNode> V, long total)
           
 
Method Summary
 void clipLongStreets()
           
 void drawABox(int width, int height)
           
 void fillInFlags()
           
 boolean fillMaze(AreaGenerationLibrary.LayoutNode p)
           
 java.lang.Long getHashCode(long x, long y)
           
 AreaGenerationLibrary.LayoutNode getNextNode(AreaGenerationLibrary.LayoutNode n, int dir)
           
 AreaGenerationLibrary.LayoutNode getNode(long[] xy)
           
 AreaGenerationLibrary.LayoutNode getNode(long x, long y)
           
 boolean isUsed(AreaGenerationLibrary.LayoutNode n)
           
 boolean isUsed(long[] xy)
           
 boolean isUsed(long x, long y)
           
 long[] makeNextCoord(long[] n, int dir)
           
 AreaGenerationLibrary.LayoutNode makeNextNode(AreaGenerationLibrary.LayoutNode n, int dir)
           
 java.util.List<AreaGenerationLibrary.LayoutNode> set()
           
 boolean spaceAvailable()
           
 void unUse(AreaGenerationLibrary.LayoutNode n)
           
 boolean use(AreaGenerationLibrary.LayoutNode n, AreaGenerationLibrary.LayoutTypes nodeType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutSet

public LayoutSet(java.util.List<AreaGenerationLibrary.LayoutNode> V,
                 long total)
Method Detail

set

public java.util.List<AreaGenerationLibrary.LayoutNode> set()

getHashCode

public java.lang.Long getHashCode(long x,
                                  long y)

isUsed

public boolean isUsed(long[] xy)

isUsed

public boolean isUsed(long x,
                      long y)

isUsed

public boolean isUsed(AreaGenerationLibrary.LayoutNode n)

unUse

public void unUse(AreaGenerationLibrary.LayoutNode n)

use

public boolean use(AreaGenerationLibrary.LayoutNode n,
                   AreaGenerationLibrary.LayoutTypes nodeType)

getNode

public AreaGenerationLibrary.LayoutNode getNode(long[] xy)

getNode

public AreaGenerationLibrary.LayoutNode getNode(long x,
                                                long y)

spaceAvailable

public boolean spaceAvailable()

makeNextCoord

public long[] makeNextCoord(long[] n,
                            int dir)

makeNextNode

public AreaGenerationLibrary.LayoutNode makeNextNode(AreaGenerationLibrary.LayoutNode n,
                                                     int dir)

getNextNode

public AreaGenerationLibrary.LayoutNode getNextNode(AreaGenerationLibrary.LayoutNode n,
                                                    int dir)

drawABox

public void drawABox(int width,
                     int height)

fillMaze

public boolean fillMaze(AreaGenerationLibrary.LayoutNode p)

clipLongStreets

public void clipLongStreets()

fillInFlags

public void fillInFlags()