maze.structure
Class MazeCellEmpty

java.lang.Object
  extended byjava.util.Observable
      extended bymaze.structure.MazeCell
          extended bymaze.structure.MazeCellEmpty

public class MazeCellEmpty
extends MazeCell

A Cell which is empty, and unused. This is the default Cell used to fill an empty Maze.


Field Summary
 
Fields inherited from class maze.structure.MazeCell
BLACK, BLANK, RED, special, theColor, theLocation
 
Constructor Summary
MazeCellEmpty()
           
 
Method Summary
 void drawFloor(java.awt.Graphics g)
          Draws the floor of an empty cell.
 void drawWall(java.awt.Graphics g)
          Draws the walls of an empty cell.
 java.lang.String toString()
          Returns a String description of this cell.
 boolean used()
          Returns true if this cell is used.
 
Methods inherited from class maze.structure.MazeCell
getColor, setColor, setCoord, setGeoCoord, setGeometry, special
 
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

MazeCellEmpty

public MazeCellEmpty()
Method Detail

drawFloor

public void drawFloor(java.awt.Graphics g)
Draws the floor of an empty cell.

Specified by:
drawFloor in class MazeCell
Parameters:
g - Graphics context.

drawWall

public void drawWall(java.awt.Graphics g)
Draws the walls of an empty cell.

Specified by:
drawWall in class MazeCell
Parameters:
g - Graphics context.

used

public boolean used()
Returns true if this cell is used.

Specified by:
used in class MazeCell
Returns:
False; an empty cell is not used.

toString

public java.lang.String toString()
Returns a String description of this cell.

Specified by:
toString in class MazeCell
Returns:
String description.