ballWorlds
Interface Animate

All Known Subinterfaces:
Ball

public interface Animate

An Animate is an object that can:

Author:
David Mutchler, Salman Azhar, Curt Clifton and others, January 2005. Modified September 2008, September 2009.

Method Summary
 void act()
          Does anything this Animate object wishes.
 void die()
          Removes this Animate object from its World.
 void pauseOrResume()
          Toggles this Animate object between its "paused" and "not-paused" states.
 

Method Detail

act

void act()
Does anything this Animate object wishes. The act() method is called repeatedly by the World to which this Animate object belongs.


pauseOrResume

void pauseOrResume()
Toggles this Animate object between its "paused" and "not-paused" states. During the paused state, the act() method should do nothing.


die

void die()
Removes this Animate object from its World. Thus, this Animate object is no longer asked to act and is no longer drawn.