package rebelsky.mug; /** * 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 things are in the place. */ public Noun[] contents(); /** * Add something to the place. */ public void add(Noun n); /** * Determine where on the "map" this place resides. */ public Cuboid location(); /** * Determine the neighboring places. */ public Place[] neighbors(); } // interface Place