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