Class MenuTwinkleBubbleManager

java.lang.Object
view.overlays.menuOverlays.MenuTwinkleBubbleManager

public class MenuTwinkleBubbleManager extends Object
The MenuTwinkleBubbleManager class manages the MenuTwinkleBubble in the menu. It handles loading the bubble sprites, initializing the bubbles, and updating and drawing them.
  • Method Details

    • getInstance

      public static MenuTwinkleBubbleManager getInstance()
      Returns the singleton instance of MenuTwinkleBubbleManager, creating it if necessary.
      Returns:
      the singleton instance of MenuTwinkleBubbleManager
    • setHomeView

      public void setHomeView(HomeView homeView)
      Sets the HomeView instance for this manager.
      Parameters:
      homeView - the HomeView instance
    • update

      public void update()
      Updates all the twinkleBubbles.
    • draw

      public void draw(Graphics g)
      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