public abstract class ProjectileSprite extends Sprite
DOWN_DELTA, LEFT_DELTA, RIGHT_DELTA, UP_DELTA
Modifier | Constructor and Description |
---|---|
protected |
ProjectileSprite(int widthOfDrawingRegion,
int heightOfDrawingRegion,
int xDisplacement,
int yDisplacement) |
Modifier and Type | Method and Description |
---|---|
double |
getAngularDisplacement() |
int |
getLifeTimeInFrames() |
int |
getxDisplacement() |
int |
getyDisplacement() |
boolean |
isFresh() |
boolean |
isLive() |
void |
move() |
void |
setAngularDisplacement(double angularDisplacement) |
void |
setFresh(boolean isFresh) |
void |
setLive(boolean isLive) |
void |
setxDisplacement(int xDisplacement) |
void |
setyDisplacement(int yDisplacement) |
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 ProjectileSprite(int widthOfDrawingRegion, int heightOfDrawingRegion, int xDisplacement, int yDisplacement)
widthOfDrawingRegion
- heightOfDrawingRegion
- xDisplacement
- expresses the x-component of the movement of the projectileyDisplacement
- expresses the y-component of the movement of the projectilepublic int getxDisplacement()
public void setxDisplacement(int xDisplacement)
public int getyDisplacement()
public void setyDisplacement(int yDisplacement)
public double getAngularDisplacement()
public void setAngularDisplacement(double angularDisplacement)
public int getLifeTimeInFrames()
public boolean isFresh()
public void setFresh(boolean isFresh)
public boolean isLive()
public void setLive(boolean isLive)
public void move()