Specification of Class Room
Room()
- construct new room and assign it a unique ID#
static Room findRoom(int targetId)
- return a reference to the room with ID# targetId, or null if there is none
static void connect(Room r1, Room r2)
- establish tunnel between r1 and r2
static void showRooms()
- list all rooms and their connections
Room farRoom(int door)
- return a reference to the room at the far side of the tunnel entered via the given door
static void main()
- a test harness for class Room
String toString
- return a string representation of a room