Package view.bubbles.specialBubbles
Class SpecialBubbleManagerView
java.lang.Object
view.bubbles.specialBubbles.SpecialBubbleManagerView
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 Summary
Modifier and TypeMethodDescriptionvoidDraws all active bubble views and water flow views on the screen.static SpecialBubbleManagerViewReturns the singleton instance of SpecialBubbleManagerView.BufferedImage[][]Returns the loaded lightning bubble sprites.BufferedImage[][]Returns the loaded player sprites.BufferedImage[][]Returns the loaded water bubble sprites.voidResets the bubble views and water flow views for a new level.voidResets the bubble views and water flow views for a new play session.voidupdate()Updates the state of all active bubble views.
-
Method Details
-
getInstance
Returns the singleton instance of SpecialBubbleManagerView.- Returns:
- the singleton instance of SpecialBubbleManagerView
-
draw
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
Returns the loaded water bubble sprites.- Returns:
- the loaded water bubble sprites
-
getLightningBubbleSprites
Returns the loaded lightning bubble sprites.- Returns:
- the loaded lightning bubble sprites
-
getPlayerSprites
Returns the loaded player sprites.- Returns:
- the loaded player sprites
-