|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
maze.structure.MazeCell
maze.structure.MazeCellWall
A Cell which is used and has walls. This is the Cell used to fill the Maze.
| Field Summary |
| Fields inherited from class maze.structure.MazeCell |
BLACK, BLANK, RED, special, theColor, theLocation |
| Constructor Summary | |
MazeCellWall(MazeGeometry g)
Constructs a new MazeCellWall with the given Geometry. |
|
MazeCellWall(MazeGeometry g,
int d1)
Constructs a new MazeCellWall with the given Geometry and Wall direction. |
|
MazeCellWall(MazeGeometry g,
int d1,
int d2)
Constructs a new MazeCellWall with the given Geometry and wall directions. |
|
MazeCellWall(MazeGeometry g,
int d1,
int d2,
int d3)
Constructs a new MazeCellWall with the given Geometry and wall directions. |
|
| Method Summary | |
void |
clearWall(int d)
Clears a wall in the given direction. |
void |
drawFloor(java.awt.Graphics g)
Draws the floor of a walled cell. |
void |
drawWall(java.awt.Graphics g)
Draws the walls of a walled cell. |
void |
setWall(int d)
Sets a wall in the given direction. |
java.lang.String |
toString()
Returns a String description of this cell. |
boolean |
used()
Returns true if this cell is used. |
boolean |
wallTo(int d)
Returns true if there is a wall in the given direction. |
| 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 |
public MazeCellWall(MazeGeometry g)
g - MazeGeometry for this Cell.
public MazeCellWall(MazeGeometry g,
int d1)
g - MazeGeometry for this Cell.d1 - int direction to place a wall.
public MazeCellWall(MazeGeometry g,
int d1,
int d2)
g - MazeGeometry for this Cell.d1 - int direction to place a wall.d2 - int direction to place a wall.
public MazeCellWall(MazeGeometry g,
int d1,
int d2,
int d3)
g - MazeGeometry for this Cell.d1 - int direction to place a wall.d2 - int direction to place a wall.d3 - int direction to place a wall.| Method Detail |
public void setWall(int d)
d - int direction to place a wall.public void clearWall(int d)
d - int direction to clear a wall.public boolean wallTo(int d)
d - int direction to test for a wall.
public void drawFloor(java.awt.Graphics g)
drawFloor in class MazeCellg - Graphics context.public void drawWall(java.awt.Graphics g)
drawWall in class MazeCellg - Graphics context.public java.lang.String toString()
toString in class MazeCellpublic boolean used()
used in class MazeCell
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||