Class SpecialBubbleManagerView

java.lang.Object
view.bubbles.specialBubbles.SpecialBubbleManagerView

public class SpecialBubbleManagerView extends Object
The SpecialBubbleManagerView class manages the view for special 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 SpecialBubbleManagerView getInstance()
      Returns the singleton instance of SpecialBubbleManagerView.
      Returns:
      the singleton instance of SpecialBubbleManagerView
    • draw

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

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

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

      public void newPlayReset()
      Resets the bubble views and water flow views for a new play session.
    • getWaterBubbleSprites

      public BufferedImage[][] getWaterBubbleSprites()
      Returns the loaded water bubble sprites.
      Returns:
      the loaded water bubble sprites
    • getLightningBubbleSprites

      public BufferedImage[][] getLightningBubbleSprites()
      Returns the loaded lightning bubble sprites.
      Returns:
      the loaded lightning bubble sprites
    • getPlayerSprites

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