Class QuestDisplay

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

public class QuestDisplay extends UIComponent
A public class that represents the settings menu display and logic for managing and showing quests onto the screen. This handles the user interface components. It manages the layout and rendering of quest-related information.
  • Constructor Details

    • QuestDisplay

      public QuestDisplay(PausableScreen screen)
      Creates a new quest display and sets the screen that can be paused.
  • Method Details

    • create

      public void create()
      Creates the display
      Overrides:
      create in class UIComponent
    • draw

      protected void draw(com.badlogic.gdx.graphics.g2d.SpriteBatch batch)
      Draws the quest UI onto the screen.
      Specified by:
      draw in class RenderComponent
      Parameters:
      batch - The sprite batch used for drawing.
    • update

      public void update()
      Updates the quest UI based on time.
      Overrides:
      update in class Component
    • dispose

      public void dispose()
      Disposes of assets used by the quest display.
      Specified by:
      dispose in interface com.badlogic.gdx.utils.Disposable
      Overrides:
      dispose in class RenderComponent