Package com.starpoints.painter.arena2D
Class PainterItemDropRocket
- java.lang.Object
-
- com.starpoints.painter.arena2D.PainterThing
-
- com.starpoints.painter.arena2D.PainterItem
-
- com.starpoints.painter.arena2D.PainterItemRocket
-
- com.starpoints.painter.arena2D.PainterItemDropRocket
-
public class PainterItemDropRocket extends PainterItemRocket
Paints a red stun fx when detonating.
-
-
Field Summary
-
Fields inherited from class com.starpoints.painter.arena2D.PainterItem
item_xFactor, item_yFactor, startIndexOfAnimation
-
-
Constructor Summary
Constructors Constructor Description PainterItemDropRocket(PainterFactory painterFactory)
Creates a PainterItemDropRocket.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
paint(Graphics g, ThingState t, GameState state, int xCenter, int yCenter, int repaintCounter)
Paints the stun fx.-
Methods inherited from class com.starpoints.painter.arena2D.PainterItemRocket
animationIndex, calculateCurveY, calculateRocketAnimationX, calculateRocketAnimationY, curveEndIndex, curveImageName, curveStartIndex, findNextTargetPoint, getImageName, getTargetPoint, indexForLastStraightMove, initializeForNewLevel, straightMoveFactor
-
Methods inherited from class com.starpoints.painter.arena2D.PainterItem
drawEnergyFx, getAnimatedXCoordinate, getAnimatedYCoordinate, paintExplosionBlackened, paintExplosionExploding, paintItemAsInfo, paintItemOnFigure, paintItemOnFigureOverlay, paintOverlay, performExploding, performStunEffect
-
Methods inherited from class com.starpoints.painter.arena2D.PainterThing
calculateAngle, checkForLevelChange, drawShaded, drawStringCentered, Figure_drawText, getController, getSplitIndex, getXCoordinate, getYCoordinate, modifyHoverXCoordinate, modifyHoverYCoordinate, paintOval
-
-
-
-
Constructor Detail
-
PainterItemDropRocket
public PainterItemDropRocket(PainterFactory painterFactory)
Creates a PainterItemDropRocket.- Parameters:
painterFactory
- Painter Factory.
-
-
Method Detail
-
paint
public void paint(Graphics g, ThingState t, GameState state, int xCenter, int yCenter, int repaintCounter)
Paints the stun fx.- Overrides:
paint
in classPainterItemRocket
- Parameters:
g
- The graphics to paint ont
- The thing.state
- GameState.xCenter
- The x coordinateyCenter
- The y coordinaterepaintCounter
- The repaint counter.
-
-