public class Ball extends MobileObject
accelerationVector, directionChange, distanceChange, speedVector
position
distance
Constructor and Description |
---|
Ball(java.awt.geom.Point2D.Double pos) |
Modifier and Type | Method and Description |
---|---|
void |
addAccVector(java.awt.geom.Point2D.Double accvect)
Adds the acceleration vector to the speedvector then normalizes it
|
void |
applydecay() |
int |
getType()
Returns the type of the object
|
getAccelerationVector, getDirectionChange, getDistanceChange, getSpeedVector, setaccelerationVector, setSpeedVector
getPosition, setPosition
getDistance, setDistance
public int getType()
GameObject
getType
in class GameObject
public void applydecay()
applydecay
in class MobileObject
public void addAccVector(java.awt.geom.Point2D.Double accvect)
accvect
-