Class PlayerBubblesManagerView

java.lang.Object
view.bubbles.playerBubbles.PlayerBubblesManagerView

public class PlayerBubblesManagerView extends Object
The PlayerBubblesManagerView class manages the view for player bubbles in the game. It handles loading bubble sprites, updating and drawing bubble views, and synchronizing bubble views with their models.
  • Method Details

    • getInstance

      public static PlayerBubblesManagerView getInstance()
      Returns the singleton instance of PlayerBubblesManagerView.
      Returns:
      the singleton instance of PlayerBubblesManagerView
    • update

      public void update()
      Updates the state of all active bubble views.
    • draw

      public void draw(Graphics g)
      Draws all active bubble views on the screen.
      Parameters:
      g - the Graphics object to draw with
    • newLevelReset

      public void newLevelReset()
      Resets the bubble views for a new level.
    • newPlayReset

      public void newPlayReset()
      Resets the bubble views for a new play session.
    • getPlayerBubbleSprites

      public BufferedImage[][] getPlayerBubbleSprites()
      Returns the loaded player bubble sprites.
      Returns:
      the loaded player bubble sprites