Class PainterItemDropRocket


  • public class PainterItemDropRocket
    extends PainterItemRocket
    Paints a red stun fx when detonating.
    • 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 class PainterItemRocket
        Parameters:
        g - The graphics to paint on
        t - The thing.
        state - GameState.
        xCenter - The x coordinate
        yCenter - The y coordinate
        repaintCounter - The repaint counter.