/// <summary> /// Sets the current Room to the one given. /// </summary> /// <param name="room"></param> public static void setCurrentRoom(String room) { RoomBase roomFound = getRoom(room); if (roomFound != null) CurrentRoom = roomFound; else new Exception("Room " + room + " does not exist!"); }
public static void addRoom(RoomBase room) { Rooms.Add(room.getName(), room); //Rooms.Add(room); }