public class GGMaze
extends java.lang.Object
Constructor and Description |
---|
GGMaze(int width,
int height)
Creates a new random maze with given number of horizontal an vertical cells.
|
Modifier and Type | Method and Description |
---|---|
Location |
getExitLocation()
Returns the location of the exit cell.
|
Location |
getStartLocation()
Returns the location of the entry cell.
|
boolean |
isWall(Location location)
Returns true, if the cell with given cell location is a wall
|
public GGMaze(int width, int height)
width
- the number of horizontal cells (must be odd)height
- the number of vertical cells (must be odd)public Location getStartLocation()
public Location getExitLocation()
public boolean isWall(Location location)
location
- the location of the requested cell