package mug13; import java.util.Vector; /** * 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 Vector persons(); /** * Find out what things are in the place. */ public Vector things(); /** * Determine the neighboring places. */ public Vector neighbors(); public void addPerson(String name); public void removePerson(String name); public void addThing(String name); public void removeThing(String name); } // interface Place