|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmaze.filler.PathEnd
A Bean that represents the end cell of a path being generated. These are pushed into PushPop storage structures to track the various branches of the path through the maze as the path is being constructed.
| Field Summary | |
protected Coordinate |
theCoordinate
The Coordinate for the end of the path. |
protected int |
theDirection
The direction of the end of the path. |
protected MazeGeometry |
theGeometry
Contains the MazeGeometry required to interpret this PathEnd. |
| Constructor Summary | |
PathEnd(MazeGeometry g,
Coordinate c,
int d)
Creates a new PathEnd from a Coordinate and a direction. |
|
| Method Summary | |
Coordinate |
coord()
Returns the Coordinate for the end of the path. |
int |
dir()
Returns the current direction. |
Coordinate |
getCoordinate()
Gets the coordinate of the path end cell. |
int |
getDirection()
Gets the direction this path end is facing. |
void |
setCoordinate(Coordinate c)
Sets the coordinate for this path end cell. |
void |
setDirection(int d)
Sets the direction this path end is facing. |
void |
setGeometry(MazeGeometry g)
Sets the underlying Maze Geometry for this PathEnd. |
java.lang.String |
toString()
Returns a String representation for the end of the path. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected Coordinate theCoordinate
protected int theDirection
protected MazeGeometry theGeometry
| Constructor Detail |
public PathEnd(MazeGeometry g,
Coordinate c,
int d)
c - Coordinate location of the cell at the end of
a path.d - int direction in which the path is being
generated.| Method Detail |
public int dir()
public Coordinate coord()
public java.lang.String toString()
public void setCoordinate(Coordinate c)
c - Coordinate of the path end.public Coordinate getCoordinate()
public void setDirection(int d)
d - int direction for this path end.public int getDirection()
public void setGeometry(MazeGeometry g)
g - MazeGeometry instance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||