package ballWorlds; /** * An Animate is an object that can: * * * @author David Mutchler, Salman Azhar, Curt Clifton and others, January 2005. * Modified September 2008, September 2009. */ public interface Animate { /** * Does anything this Animate object wishes. The act() method is called * repeatedly by the World to which this Animate object belongs. */ public void act(); /** * Toggles this Animate object between its "paused" and "not-paused" states. * During the paused state, the act() method should do nothing. */ public void pauseOrResume(); /** * Removes this Animate object from its World. Thus, this Animate object is * no longer asked to act and is no longer drawn. */ public void die(); }