public class MazeRoom
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static MazeRoom |
buildCyclicMaze()
Returns a MazeRoom that serves as the entrance to a
pre-built maze with a cycle (i.e., loop).
|
static MazeRoom |
buildMaze()
Returns a MazeRoom that serves as the entrance to a
pre-built maze.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
Returns the name associated with this room.
|
MazeRoom |
goEast()
Returns the MazeRoom that is east of this one.
|
MazeRoom |
goNorth()
Returns the MazeRoom that is north of this one.
|
MazeRoom |
goSouth()
Returns the MazeRoom that is south of this one.
|
MazeRoom |
goWest()
Returns the MazeRoom that is west of this one.
|
int |
hashCode() |
public java.lang.String getName()
public MazeRoom goNorth()
public MazeRoom goEast()
public MazeRoom goSouth()
public MazeRoom goWest()
public static MazeRoom buildMaze()
public static MazeRoom buildCyclicMaze()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object