public class BeetleShooter extends ShooterSprite
Constructor and Description |
---|
BeetleShooter(int widthOfDrawingRegion,
int heightOfDrawingRegion)
Creates a basic sprite within a game world with the specified dimensions.
|
Modifier and Type | Method and Description |
---|---|
void |
draw(java.awt.Graphics2D graphics2D) |
ProjectileSprite |
fire() |
int |
getDownDelta() |
int |
getLeftDelta() |
int |
getRightDelta() |
int |
getUpDelta() |
void |
moveDown() |
void |
moveLeft() |
void |
moveRight() |
void |
moveUp() |
getAngularDisplacement, getPointOfShooterTipRelativeToSpriteCentre, getShooterTip, rotateLeft, rotateRight, setAngularDisplacement, setPointOfShooterTipRelativeToSpriteCentre
addJitter, getAnchorPoint, getBounds2D, getHeightOfDrawingRegion, getMaxPeturb, getMinPerturb, getNewPosition, getTheBoundingShape, getWidthOfDrawingRegion, isCollided, isExploded, reposition, setAnchorPoint, setExploded, setHeightOfDrawingRegion, setTheBoundingShape, setWidthOfDrawingRegion, wrapAround
public BeetleShooter(int widthOfDrawingRegion, int heightOfDrawingRegion)
widthOfDrawingRegion
- as described aboveheightOfDrawingRegion
- as described abovepublic int getRightDelta()
getRightDelta
in class Sprite
public int getLeftDelta()
getLeftDelta
in class Sprite
public int getDownDelta()
getDownDelta
in class Sprite
public int getUpDelta()
getUpDelta
in class Sprite
public ProjectileSprite fire()
fire
in class ShooterSprite