Class Moveable

java.lang.Object
  extended by Moveable

public class Moveable
extends Object


Field Summary
static int DIAMETER
           
 
Constructor Summary
Moveable(double newX, double newY, double newDirection, double newSpeed)
           
 
Method Summary
 Color getColor()
           
 double getDirection()
           
 double getSpeed()
           
 double getX()
           
 double getY()
           
 void paint(Graphics g, int xPos, int yPos)
           
 void setColor(Color newColor)
           
 void setDirection(double newDirection)
           
 void setLocation(double newX, double newY)
           
 void setSpeed(double newSpeed)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DIAMETER

public static final int DIAMETER
See Also:
Constant Field Values
Constructor Detail

Moveable

public Moveable(double newX,
                double newY,
                double newDirection,
                double newSpeed)
Method Detail

getColor

public Color getColor()

getDirection

public double getDirection()

getSpeed

public double getSpeed()

getX

public double getX()

getY

public double getY()

paint

public void paint(Graphics g,
                  int xPos,
                  int yPos)

setColor

public void setColor(Color newColor)

setDirection

public void setDirection(double newDirection)

setLocation

public void setLocation(double newX,
                        double newY)

setSpeed

public void setSpeed(double newSpeed)