/** * a room in the house, it is a child class of AdvancedRoom * * Joe Rivard * 4/13/03 */ public class LaundryRoom extends AdvancedRoom { /** * returns the short description of the room * @return String, the short description of the room */ public String shortDescription() { return "You are in the laundry room"; } /** * returns a string of the room in a specified direction * @param String , the direction being moved */ public String next(String n) { String s = ""; if(n.equals("north")) s = "kitchen"; else if(n.equals("east")) s = "parentsbedroom"; else if(n.equals("south")) s = "basement"; return s; } }