Class CutsceneScreenDisplay

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

public class CutsceneScreenDisplay extends UIComponent
The CutsceneScreenDisplay class manages the user interface for displaying cutscenes, including text display, buttons to advance or exit the cutscene, and handling user input.
  • Constructor Details

    • CutsceneScreenDisplay

      public CutsceneScreenDisplay(com.badlogic.gdx.scenes.scene2d.ui.Skin skin)
    • CutsceneScreenDisplay

      public CutsceneScreenDisplay()
  • Method Details

    • create

      public void create()
      Initializes the cutscene UI, sets up buttons and listeners, and starts the cutscene text display.
      Overrides:
      create in class UIComponent
    • setupTextDisplay

      public void setupTextDisplay()
      Sets up the text display for the screen
    • dispose

      public void dispose()
      Disposes of the cutscene screen display, clearing any UI elements.
      Specified by:
      dispose in interface com.badlogic.gdx.utils.Disposable
      Overrides:
      dispose in class RenderComponent
    • draw

      public void draw(com.badlogic.gdx.graphics.g2d.SpriteBatch batch)
      Draw method for rendering the cutscene screen. Handled by the stage.
      Specified by:
      draw in class RenderComponent
      Parameters:
      batch - The sprite batch used for rendering.
    • getStage

      public com.badlogic.gdx.scenes.scene2d.Stage getStage()
      Gets the stage component for the cutscene display.
      Returns:
      The Stage component for the cutscene.
    • setStage

      public void setStage(com.badlogic.gdx.scenes.scene2d.Stage stage)
      Sets the stage for the cutscene display.
      Parameters:
      stage - The stage to be set.
    • setTable

      public void setTable(com.badlogic.gdx.scenes.scene2d.ui.Table table)
      Sets the table for the cutscene UI.
      Parameters:
      table - The table to be set.
    • getTable

      public com.badlogic.gdx.scenes.scene2d.ui.Table getTable()
      Gets the table for the cutscene UI.
      Returns:
      The Table component
    • getTextDisplay

      public TextDisplay getTextDisplay()
      Gets the cutscene text display component for the cutscene.
      Returns:
      A CutsceneTextDisplay component for the cutscene.
    • setTextDisplay

      public void setTextDisplay(TextDisplay textDisplay)
      Sets the Cutscene Text Display Component for the cutscene.
      Parameters:
      textDisplay - the CutsceneTextDisplay to be set.