ballworlds.framework
Interface Animate

All Known Implementing Classes:
Ball

public interface Animate

An Animate is an object that can:

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

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

Method Detail

act

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


pauseOrResume

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


die

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