Class EnemyTransitionCutSceneScreen

java.lang.Object
com.badlogic.gdx.ScreenAdapter
com.csse3200.game.screens.EnemyTransitionCutSceneScreen
All Implemented Interfaces:
com.badlogic.gdx.Screen

public class EnemyTransitionCutSceneScreen extends com.badlogic.gdx.ScreenAdapter
Screen that handles the display of an enemy transition cutscene. Manages rendering the background and UI elements, and acts as the entry point for the cutscene when triggered. This class extends ScreenAdapter, which provides basic screen lifecycle methods.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor for EnemyTransitionCutSceneScreen.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Displays the images on the stage.
    void
    Disposes of resources when screen is no longer needed.
    void
    Sets the texture for the enemy to be used.
    void
    render(float delta)
     
    void
    resize(int width, int height)
    Resizes the screen, adjusting the viewport of the stage to match the new width and height.
    void
     

    Methods inherited from class com.badlogic.gdx.ScreenAdapter

    hide, pause, resume

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EnemyTransitionCutSceneScreen

      public EnemyTransitionCutSceneScreen(GdxGame game, Entity enemy)
      Constructor for EnemyTransitionCutSceneScreen. Initializes the screen with necessary resources, including the stage and background texture.
  • Method Details

    • displayTextures

      public void displayTextures()
      Displays the images on the stage.
    • getEnemy

      public void getEnemy(Entity enemy)
      Sets the texture for the enemy to be used.
    • resize

      public void resize(int width, int height)
      Resizes the screen, adjusting the viewport of the stage to match the new width and height.
      Specified by:
      resize in interface com.badlogic.gdx.Screen
      Overrides:
      resize in class com.badlogic.gdx.ScreenAdapter
    • dispose

      public void dispose()
      Disposes of resources when screen is no longer needed.
      Specified by:
      dispose in interface com.badlogic.gdx.Screen
      Overrides:
      dispose in class com.badlogic.gdx.ScreenAdapter
    • show

      public void show()
      Specified by:
      show in interface com.badlogic.gdx.Screen
      Overrides:
      show in class com.badlogic.gdx.ScreenAdapter
    • render

      public void render(float delta)
      Specified by:
      render in interface com.badlogic.gdx.Screen
      Overrides:
      render in class com.badlogic.gdx.ScreenAdapter