public abstract class ShooterSprite extends Sprite
DOWN_DELTA, LEFT_DELTA, RIGHT_DELTA, UP_DELTA
Modifier | Constructor and Description |
---|---|
protected |
ShooterSprite(int widthOfDrawingRegion,
int heightOfDrawingRegion) |
Modifier and Type | Method and Description |
---|---|
ProjectileSprite |
fire() |
double |
getAngularDisplacement() |
java.awt.Point |
getPointOfShooterTipRelativeToSpriteCentre()
Returns the coordinates of the shooter tip, relative to the centre of the
sprite
|
protected java.awt.Point |
getShooterTip() |
void |
rotateLeft() |
void |
rotateRight() |
void |
setAngularDisplacement(double angularDisplacement) |
void |
setPointOfShooterTipRelativeToSpriteCentre(java.awt.Point pointOfShooterTipRelativeToSpriteCentre)
Sets the coordinates of the shooter tip, relative to the centre of the
sprite
|
addJitter, draw, getAnchorPoint, getBounds2D, getDownDelta, getHeightOfDrawingRegion, getLeftDelta, getMaxPeturb, getMinPerturb, getNewPosition, getRightDelta, getTheBoundingShape, getUpDelta, getWidthOfDrawingRegion, isCollided, isExploded, moveDown, moveLeft, moveRight, moveUp, reposition, setAnchorPoint, setExploded, setHeightOfDrawingRegion, setTheBoundingShape, setWidthOfDrawingRegion, wrapAround
protected ShooterSprite(int widthOfDrawingRegion, int heightOfDrawingRegion)
public ProjectileSprite fire()
public double getAngularDisplacement()
public void setAngularDisplacement(double angularDisplacement)
protected java.awt.Point getShooterTip()
public java.awt.Point getPointOfShooterTipRelativeToSpriteCentre()
public void setPointOfShooterTipRelativeToSpriteCentre(java.awt.Point pointOfShooterTipRelativeToSpriteCentre)
pointOfShooterTipRelativeToSpriteCentre
- as described abovepublic void rotateLeft()
public void rotateRight()