|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectMazeExplorer.Room
private class MazeExplorer.Room
Field Summary | |
---|---|
(package private) Vertex[] |
dir
|
(package private) boolean[] |
dirs
|
(package private) java.util.LinkedList<Vertex> |
exits
|
(package private) Maze |
maze
|
(package private) java.util.Scanner |
scan
|
(package private) Vertex |
v
|
Constructor Summary | |
---|---|
MazeExplorer.Room(Vertex v,
Maze maze,
java.util.Scanner scan)
Finds out which directions the user can move in |
Method Summary | |
---|---|
MazeExplorer.Room |
move(java.util.Scanner scan)
Returns the room to which the user moves |
java.lang.String |
toString()
Tells the user which directions they can move in |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
Vertex[] dir
Vertex v
boolean[] dirs
Maze maze
java.util.LinkedList<Vertex> exits
java.util.Scanner scan
Constructor Detail |
---|
public MazeExplorer.Room(Vertex v, Maze maze, java.util.Scanner scan)
v
- The vertex this room representsmaze
- The maze we're inscan
- Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public MazeExplorer.Room move(java.util.Scanner scan)
scan
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |