maze
Class MazeParam

java.lang.Object
  extended byjava.util.Observable
      extended bymaze.MazeParam

public class MazeParam
extends java.util.Observable

Parameter bean describing how the maze should be constructed.


Constructor Summary
MazeParam()
          Construct an new MazeParam bean.
 
Method Summary
 void init()
          Default initialization for a MazeParam bean.
 void setBranch(int v)
          Sets the branchiness of the Maze.
 void setFiller(java.lang.String v)
          Sets the filler for the Maze.
 void setHorizontal(int v)
          Sets the horizontal size of the Maze.
 void setMethod(java.lang.String v)
          Sets the method for filling the Maze.
 void setTiling(java.lang.String v)
          Sets the tiling for the maze.
 void setVertical(int v)
          Sets the vertical size of the maze.
 java.lang.String toString()
          Returns a String representation of the Maze filling parameter bean.
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MazeParam

public MazeParam()
Construct an new MazeParam bean.

Method Detail

init

public void init()
Default initialization for a MazeParam bean.


setFiller

public void setFiller(java.lang.String v)
Sets the filler for the Maze. Choices are "Kinked", "Retry" and "Simple". Default is "Simple".

Parameters:
v - String name of the filler.

setMethod

public void setMethod(java.lang.String v)
Sets the method for filling the Maze. Choices are "Depth-First" or "Breadth-First". Default is "Depth-First".

Parameters:
v - String name of the filler.

setTiling

public void setTiling(java.lang.String v)
Sets the tiling for the maze. Choices are "Rect" and "Hex". Default is "Rect".

Parameters:
v - String name of the tiling for the Maze.

setHorizontal

public void setHorizontal(int v)
Sets the horizontal size of the Maze. Default is 16.

Parameters:
v - int size of the Maze

setVertical

public void setVertical(int v)
Sets the vertical size of the maze. Default is 16.

Parameters:
v - int size of the Maze.

setBranch

public void setBranch(int v)
Sets the branchiness of the Maze. Range is 00 to 100. Default is 50.

Parameters:
v - int branching factor.

toString

public java.lang.String toString()
Returns a String representation of the Maze filling parameter bean.

Returns:
String representation of the parameters.