Class MazeExplorer.Room

java.lang.Object
  extended by MazeExplorer.Room
Enclosing class:
MazeExplorer

private class MazeExplorer.Room
extends java.lang.Object

Author:
esty

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

dir

Vertex[] dir

v

Vertex v

dirs

boolean[] dirs

maze

Maze maze

exits

java.util.LinkedList<Vertex> exits

scan

java.util.Scanner scan
Constructor Detail

MazeExplorer.Room

public MazeExplorer.Room(Vertex v,
                         Maze maze,
                         java.util.Scanner scan)
Finds out which directions the user can move in

Parameters:
v - The vertex this room represents
maze - The maze we're in
scan -
Method Detail

toString

public java.lang.String toString()
Tells the user which directions they can move in

Overrides:
toString in class java.lang.Object

move

public MazeExplorer.Room move(java.util.Scanner scan)
Returns the room to which the user moves

Parameters:
scan -
Returns: