Package hsa
Class Moveable
- java.lang.Object
-
- hsa.Moveable
-
public class Moveable extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static intDIAMETER
-
Constructor Summary
Constructors Constructor Description Moveable(double newX, double newY, double newDirection, double newSpeed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.ColorgetColor()doublegetDirection()doublegetSpeed()doublegetX()doublegetY()voidpaint(java.awt.Graphics g, int xPos, int yPos)voidsetColor(java.awt.Color newColor)voidsetDirection(double newDirection)voidsetLocation(double newX, double newY)voidsetSpeed(double newSpeed)
-
-
-
Field Detail
-
DIAMETER
public static final int DIAMETER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getX
public double getX()
-
getY
public double getY()
-
setLocation
public void setLocation(double newX, double newY)
-
getDirection
public double getDirection()
-
setDirection
public void setDirection(double newDirection)
-
getSpeed
public double getSpeed()
-
setSpeed
public void setSpeed(double newSpeed)
-
getColor
public java.awt.Color getColor()
-
setColor
public void setColor(java.awt.Color newColor)
-
paint
public void paint(java.awt.Graphics g, int xPos, int yPos)
-
-