package ballWorlds;
/**
* An Animate is an object that can:
*
* - act (in any way it chooses)
* - pause/resume its action
* - die (remove itself from its World, hence no longer be drawn or asked to
* act).
*
*
* @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();
}