|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.caff.maze.MazeCell
public abstract class MazeCell
Basic class describing a cell in a maze. The following items describe the intention used:
MazeCell.getSet()
and
MazeCell.setSet(Object)
.MazeCell.getNeighbours()
,
MazeCell.connectTo(MazeCell)
and MazeCell.getConnectedNeighbours()
.MazeCell.getMaze()
MazeCell.getID()
MazeCell.getShape()
Constructor Summary | |
---|---|
MazeCell()
|
Method Summary | |
---|---|
abstract void |
connectTo(MazeCell cell)
Connect this cell to the given one. |
abstract MazeCell[] |
getConnectedNeighbours()
Get the connected neighbour cells of this one. |
abstract int |
getID()
Get the id of this cell. |
abstract Maze |
getMaze()
Get the maze to which this cell belongs. |
abstract MazeCell[] |
getNeighbours()
Get the neighbour cells of this one. |
java.lang.Object |
getSet()
Get the current set during maze creation. |
abstract java.awt.Shape |
getShape()
Get the shape of this cell in the current display. |
void |
setSet(java.lang.Object set)
Set the current set during maze creation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MazeCell()
Method Detail |
---|
public java.lang.Object getSet()
public void setSet(java.lang.Object set)
set
- the current setpublic abstract void connectTo(MazeCell cell)
cell
- cell to connect topublic abstract MazeCell[] getNeighbours()
public abstract MazeCell[] getConnectedNeighbours()
public abstract Maze getMaze()
public abstract java.awt.Shape getShape()
public abstract int getID()
Maze.getCellByID(int)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |