Class Ball

java.lang.Object
  |
  +--Ball
All Implemented Interfaces:
java.lang.Runnable

public class Ball
extends java.lang.Object
implements java.lang.Runnable


Field Summary
 java.awt.geom.RoundRectangle2D.Double old
           
 
Constructor Summary
Ball(Game b)
           
 
Method Summary
 void bounce(boolean horizontal)
           
 void bounce(int b)
           
 java.awt.geom.RoundRectangle2D.Double getRectangle()
           
 void render(java.awt.Graphics2D g)
           
 void run()
           
 void setDirection(int dir)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

old

public java.awt.geom.RoundRectangle2D.Double old
Constructor Detail

Ball

public Ball(Game b)
Method Detail

render

public void render(java.awt.Graphics2D g)

getRectangle

public java.awt.geom.RoundRectangle2D.Double getRectangle()

start

public void start()

stop

public void stop()

bounce

public void bounce(int b)

bounce

public void bounce(boolean horizontal)

setDirection

public void setDirection(int dir)

run

public void run()
Specified by:
run in interface java.lang.Runnable