vitro.util
Class Maze

java.lang.Object
  extended by vitro.util.Maze

public class Maze
extends Object


Nested Class Summary
static class Maze.Direction
           
 
Field Summary
 int height
           
 int width
           
 
Constructor Summary
Maze(int width, int height)
           
 
Method Summary
 int[][] asIntegerGrid()
           
 boolean passable(int x, int y, Maze.Direction dir)
           
 void setPassable(int x, int y, Maze.Direction dir, boolean v)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

width

public final int width

height

public final int height
Constructor Detail

Maze

public Maze(int width,
            int height)
Method Detail

passable

public boolean passable(int x,
                        int y,
                        Maze.Direction dir)

setPassable

public void setPassable(int x,
                        int y,
                        Maze.Direction dir,
                        boolean v)

asIntegerGrid

public int[][] asIntegerGrid()

toString

public String toString()
Overrides:
toString in class Object