package mug12; /** * A place in the world of Grinnell. Places hold objects and * people and are also connected to other places. * * @author CSC152 2004F */ public interface Place extends Noun { /** * Is this room available to person p? */ public boolean available(Person p); /** * Find out what people are in the place. */ public String[] persons(); /** * Find out what things are in the place. */ public String[] things(); /** * Determine the neighboring places. */ public String[] neighbors(); public void addPerson(String name); public void removePerson(String name); public void addThing(String name); public void removeThing(String name); } // interface Place