Class Moveable
java.lang.Object
Moveable
public class Moveable
- extends Object
Constructor Summary |
Moveable(double newX,
double newY,
double newDirection,
double newSpeed)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DIAMETER
public static final int DIAMETER
- See Also:
- Constant Field Values
Moveable
public Moveable(double newX,
double newY,
double newDirection,
double newSpeed)
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)