/** * a room in the house, it is a child class of AdvancedRoom * * Joe Rivard * 4/13/03 */ public class ParentsBedRoom 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 Parents bed 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 = "livingroom"; else if(n.equals("east")) s = "poolroom"; else if(n.equals("south")) s = "bathroom"; else if(n.equals("west")) s = "laundryroom"; return s; } }