public class MyProjectileSprite extends ProjectileSprite
DOWN_DELTA, LEFT_DELTA, RIGHT_DELTA, UP_DELTA
Constructor and Description |
---|
MyProjectileSprite(int widthOfDrawingRegion,
int heightOfDrawingRegion,
java.awt.Point initialPosition,
int xDisplacement,
int yDisplacement)
Instantiates a sprite that is has projectile behaviours.
|
Modifier and Type | Method and Description |
---|---|
void |
draw(java.awt.Graphics2D g) |
getAngularDisplacement, getLifeTimeInFrames, getxDisplacement, getyDisplacement, isFresh, isLive, move, setAngularDisplacement, setFresh, setLive, setxDisplacement, setyDisplacement
addJitter, 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
public MyProjectileSprite(int widthOfDrawingRegion, int heightOfDrawingRegion, java.awt.Point initialPosition, int xDisplacement, int yDisplacement)
widthOfDrawingRegion
- heightOfDrawingRegion
- initialPosition
- xDisplacement
- yDisplacement
-