Class EnemyBubbleView


public class EnemyBubbleView extends EmptyBubbleView
The EnemyBubbleView class represents the view for an EnemyBubbleModel. It handles updating the bubble's animation, drawing the bubble on the screen, and playing sound effects.
  • Constructor Details

    • EnemyBubbleView

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

    • update

      public void update()
      Updates the bubble's state and animation.
      Overrides:
      update in class PlayerBubbleView
    • draw

      public void draw(Graphics g)
      Draws the enemy bubble on the screen.
      Overrides:
      draw in class EmptyBubbleView
      Parameters:
      g - the Graphics object to draw with