Class WaterBubbleView

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

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

    • WaterBubbleView

      public WaterBubbleView(BubbleModel bubbleModel)
      Constructs a WaterBubbleView 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 water bubble on the screen.
      Specified by:
      draw in class BubbleView
      Parameters:
      g - the Graphics object to draw with