net.mazewar
Class Cell

java.lang.Object
  extended by net.mazewar.Cell

public abstract class Cell
extends java.lang.Object

An abstract class for individual cells of the maze.

Version:
$Id: Cell.java 334 2004-01-23 16:08:35Z geoffw $
Author:
Geoffrey Washburn <geoffw@cis.upenn.edu>

Constructor Summary
Cell()
           
 
Method Summary
abstract  java.lang.Object getContents()
          Obtain the contents of the cell.
abstract  boolean isWall(Direction direction)
          Does this cell have a wall in the specified direction?
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cell

public Cell()
Method Detail

isWall

public abstract boolean isWall(Direction direction)
Does this cell have a wall in the specified direction?

Parameters:
direction - Cardinal direction to check.
Returns:
true if there is a wall, false otherwise.

getContents

public abstract java.lang.Object getContents()
Obtain the contents of the cell.

Returns:
null if the cell is empty, otherwise some object