Package com.starpoints.painter.arena2D
Class PainterItemBomb
- java.lang.Object
-
- com.starpoints.painter.arena2D.PainterThing
-
- com.starpoints.painter.arena2D.PainterItem
-
- com.starpoints.painter.arena2D.PainterItemBomb
-
public class PainterItemBomb extends PainterItem
Special painter for ItemMine. Paints a small red dot on active mines.
-
-
Field Summary
-
Fields inherited from class com.starpoints.painter.arena2D.PainterItem
item_xFactor, item_yFactor, startIndexOfAnimation
-
-
Constructor Summary
Constructors Constructor Description PainterItemBomb(PainterFactory painterFactory)
Creates a PainterItemMine.
-
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 a small red dot on bombs.-
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, initializeForNewLevel, modifyHoverXCoordinate, modifyHoverYCoordinate, paintOval
-
-
-
-
Constructor Detail
-
PainterItemBomb
public PainterItemBomb(PainterFactory painterFactory)
Creates a PainterItemMine.- Parameters:
painterFactory
- The factory.
-
-
Method Detail
-
paint
public void paint(Graphics g, ThingState t, GameState state, int xCenter, int yCenter, int repaintCounter)
Paints a small red dot on bombs.- Overrides:
paint
in classPainterItem
- Parameters:
g
- The graphics to paint ont
- The thing.state
- GameState.xCenter
- The x coordinateyCenter
- The y coordinaterepaintCounter
- The repaint counter.
-
-