Package hsa
Class Bounceable
- java.lang.Object
-
- hsa.Bounceable
-
public abstract class Bounceable extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Bounceable(double newX, double newY, double newDirection, double newSpeed)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract doublegetBottom()java.awt.ColorgetColor()doublegetDirection()abstract doublegetLeft()abstract doublegetRight()doublegetSpeed()abstract doublegetTop()doublegetX()doublegetY()abstract 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)
-
-
-
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 abstract void paint(java.awt.Graphics g, int xPos, int yPos)
-
getTop
public abstract double getTop()
-
getBottom
public abstract double getBottom()
-
getLeft
public abstract double getLeft()
-
getRight
public abstract double getRight()
-
-