package project; /** * Ways to build a world. * */ public interface WorldBuilder { // Methods for constructing the world. /** * Add Person to world */ public void addPerson(Person bob) throws NameTakenException; /** * Remove Person from world */ public void removePerson(String bob); /** * Add Person to world */ public void addThing(Thing jim) throws NameTakenException; /** * Remove Person from world */ public void removeThing(String jim); /** * Add a new location. */ public void addLocation(Place loc); /** * Remove an existing location. */ public void removeLocation(String loc); /** * Maps names to objects */ public Object map(String name) throws NotHereException; } // interface WorldBuilder