com.planet_ink.coffee_mud.Libraries.layouts
Class MazeLayout

java.lang.Object
  extended by com.planet_ink.coffee_mud.Libraries.layouts.AbstractLayout
      extended by com.planet_ink.coffee_mud.Libraries.layouts.MazeLayout
All Implemented Interfaces:
AreaGenerationLibrary.LayoutManager

public class MazeLayout
extends AbstractLayout


Constructor Summary
MazeLayout()
           
 
Method Summary
 void fillMaze(LayoutSet lSet, AreaGenerationLibrary.LayoutNode p, int width, int height)
           
 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.
 java.lang.String name()
          The name of the layout manager
 
Methods inherited from class com.planet_ink.coffee_mud.Libraries.layouts.AbstractLayout
diff, getDirection, getRunDirection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MazeLayout

public MazeLayout()
Method Detail

name

public java.lang.String name()
Description copied from interface: AreaGenerationLibrary.LayoutManager
The name of the layout manager

Specified by:
name in interface AreaGenerationLibrary.LayoutManager
Specified by:
name in class AbstractLayout
Returns:
name of the layout manager

fillMaze

public void fillMaze(LayoutSet lSet,
                     AreaGenerationLibrary.LayoutNode p,
                     int width,
                     int height)

generate

public java.util.List<AreaGenerationLibrary.LayoutNode> generate(int num,
                                                                 int dir)
Description copied from interface: AreaGenerationLibrary.LayoutManager
Generates a list of layout nodes, each of which reprents a single room in the area. The first node is always the entry room, which is entered from the direction given to this method.

Specified by:
generate in interface AreaGenerationLibrary.LayoutManager
Specified by:
generate in class AbstractLayout
Parameters:
num - the number of nodes to generate
dir - the direction of entry into this group of nodes.
Returns:
a list of layout nodes
See Also:
AreaGenerationLibrary.LayoutNode