Add toString method for Box Add code to print the shortest path for this particular case.
17 lines
206 B
Java
17 lines
206 B
Java
package maze;
|
|
|
|
public class DBox extends EBox{
|
|
|
|
public DBox (String label, int x, int y, Maze maze) {
|
|
|
|
super(label,x,y,maze) ;
|
|
|
|
}
|
|
|
|
@Override
|
|
public boolean isDeparture() {
|
|
return true ;
|
|
}
|
|
|
|
}
|