Class LightningBubbleView

java.lang.Object
view.bubbles.BubbleView
view.bubbles.specialBubbles.LightningBubbleView

public class LightningBubbleView extends BubbleView
The LightningBubbleView class represents the view for a LightningBubbleModel. It handles updating the bubble's animation and drawing the bubble on the screen.
  • Constructor Details

    • LightningBubbleView

      public LightningBubbleView(BubbleModel bubbleModel)
      Constructs a LightningBubbleView with the specified BubbleModel.
      Parameters:
      bubbleModel - the model for the bubble entity
  • Method Details

    • update

      public void update()
      Updates the bubble's animation state.
      Specified by:
      update in class BubbleView
    • draw

      public void draw(Graphics g)
      Draws the lightning bubble on the screen.
      Specified by:
      draw in class BubbleView
      Parameters:
      g - the Graphics object to draw with