simulation
Class Ball

java.lang.Object
  extended bysimulation.Simulton
      extended bysimulation.MoveableSimulton
          extended bysimulation.Prey
              extended bysimulation.Ball

public class Ball
extends Prey


Field Summary
private  ColoredCircle image
           
private  StraightBehavior move
           
private  int radius
           
 
Fields inherited from class simulation.MoveableSimulton
 
Fields inherited from class simulation.Simulton
 
Constructor Summary
(package private) Ball(int x, int y)
           
 
Method Summary
(package private)  Displayable getImage()
           
(package private)  void update(Model m)
           
 
Methods inherited from class simulation.MoveableSimulton
bounce, getAngle, getSpeed, move, randomizeAngle, setAngle, setSpeed, setVelocity, wallBounce
 
Methods inherited from class simulation.Simulton
cannotOverlap, display, encloses, getInnerBox, getLocation, getOuterBox, mayOverlap, mustOverlap, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

radius

private int radius

move

private StraightBehavior move

image

private ColoredCircle image
Constructor Detail

Ball

Ball(int x,
     int y)
Method Detail

update

void update(Model m)
Specified by:
update in class Simulton

getImage

Displayable getImage()
Specified by:
getImage in class Simulton