|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.mazewar.Cell
public abstract class Cell
An abstract class for individual cells of the maze.
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 |
---|
public Cell()
Method Detail |
---|
public abstract boolean isWall(Direction direction)
direction
- Cardinal direction to check.
true
if there is a wall, false
otherwise.public abstract java.lang.Object getContents()
null
if the cell is empty, otherwise some object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |