Dijkstra

in class World:
variables:
private static List<Room> Rooms; //List of all Rooms - need to be filled

methods:
public static List<Room> getAllRooms(){return Rooms;};

in class Room:
variables:
List<Integer> attachedRooms; //needs to be filled with IDs of attached Rooms

methods:
public int getId(){return roomID;};
public List<Integer> getAttachedRooms(){return attachedRooms;};