com.esotericsoftware.kryonet
Class Ball

java.lang.Object
  extended by com.esotericsoftware.kryonet.Ball
All Implemented Interfaces:
IBall

public class Ball
extends java.lang.Object
implements IBall


Constructor Summary
Ball()
           
Ball(java.awt.Point lc, int r)
           
 
Method Summary
 double changeX()
           
 double changeY()
           
 java.awt.Color getColor()
           
 java.awt.Point location()
           
 void move()
           
 int radius()
           
 void setColor(java.awt.Color newColor)
           
 void setMotion(double dx, double dy)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ball

public Ball()

Ball

public Ball(java.awt.Point lc,
            int r)
Method Detail

setColor

public void setColor(java.awt.Color newColor)
Specified by:
setColor in interface IBall

getColor

public java.awt.Color getColor()
Specified by:
getColor in interface IBall

setMotion

public void setMotion(double dx,
                      double dy)
Specified by:
setMotion in interface IBall

radius

public int radius()
Specified by:
radius in interface IBall

location

public java.awt.Point location()
Specified by:
location in interface IBall

changeX

public double changeX()
Specified by:
changeX in interface IBall

changeY

public double changeY()
Specified by:
changeY in interface IBall

move

public void move()
Specified by:
move in interface IBall