ballWorlds
Interface Ball

All Superinterfaces:
Animate, BallDescriber, Drawable, Morphable, Selectable

public interface Ball
extends Drawable, Selectable, Morphable, Animate, BallDescriber

A Ball is the name for a "generic" ball, that is, any Drawable, Selectable, Morphable, Animate object that is also a BallDescriber.

Specific kinds of Balls are expected to do other things like move on their own, bounce, shrink and grow in size, explode, and be draggable by the mouse.

Every class that implements Ball must have a constructor that takes a World object.

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

Method Summary
 
Methods inherited from interface ballWorlds.Selectable
distanceFrom
 
Methods inherited from interface ballWorlds.Morphable
applyForce, moveTo, moveTo, moveTo, multiplySize, setMass, setShape, setSize, setVelocity
 
Methods inherited from interface ballWorlds.Animate
act, die, pauseOrResume
 
Methods inherited from interface ballWorlds.BallDescriber
getMass, getSize, getVelocity
 
Methods inherited from interface ballWorlds.Drawable
getColor, getShape