Class AchievementDisplay

All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable, Renderable, Comparable<Renderable>

public class AchievementDisplay extends UIComponent
The AchievementDisplay class manages the display of achievements in the achievements screen
  • Constructor Details

    • AchievementDisplay

      public AchievementDisplay(GdxGame game)
      Constructs an AchievementDisplay instance for managing the display of achievements in the game.
      Parameters:
      game - The main game instance.
  • Method Details

    • create

      public void create()
      Initializes the Achievement display by loading textures, sounds, and creating UI components.
      Overrides:
      create in class UIComponent
    • draw

      public void draw(com.badlogic.gdx.graphics.g2d.SpriteBatch batch)
      Description copied from class: RenderComponent
      Draw the renderable. Should be called only by the renderer, not manually.
      Specified by:
      draw in class RenderComponent
      Parameters:
      batch - Batch to render to.
    • dispose

      public void dispose()
      Clear the UI elements on the display
      Specified by:
      dispose in interface com.badlogic.gdx.utils.Disposable
      Overrides:
      dispose in class RenderComponent