Package view.overlays.menuOverlays
Class MenuTwinkleBubbleManager
java.lang.Object
view.overlays.menuOverlays.MenuTwinkleBubbleManager
The MenuTwinkleBubbleManager class manages the
MenuTwinkleBubble in the menu.
It handles loading the bubble sprites, initializing the bubbles, and updating and drawing them.-
Method Summary
Modifier and TypeMethodDescriptionvoidDraws all the twinkleBubbles.static MenuTwinkleBubbleManagerReturns the singleton instance of MenuTwinkleBubbleManager, creating it if necessary.booleanChecks if the home logo is in position.voidsetHomeView(HomeView homeView) Sets the HomeView instance for this manager.voidupdate()Updates all the twinkleBubbles.
-
Method Details
-
getInstance
Returns the singleton instance of MenuTwinkleBubbleManager, creating it if necessary.- Returns:
- the singleton instance of MenuTwinkleBubbleManager
-
setHomeView
Sets the HomeView instance for this manager.- Parameters:
homeView- the HomeView instance
-
update
public void update()Updates all the twinkleBubbles. -
draw
Draws all the twinkleBubbles.- Parameters:
g- the Graphics object to draw with
-
IsHomeLogoInPosition
public boolean IsHomeLogoInPosition()Checks if the home logo is in position.- Returns:
- true if the home logo is in position, false otherwise
-