Class PreCombatCutsceneScreen

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

public class PreCombatCutsceneScreen extends ResizableScreen
Manages the cutscene for Enemy and Boss NPCs displayed before transitioning to the combat screen. Handles initialization, rendering, and disposal of cutscene elements.
  • Field Details

  • Constructor Details

    • PreCombatCutsceneScreen

      public PreCombatCutsceneScreen(GdxGame game, com.badlogic.gdx.Screen screen, ServiceContainer container, Entity player, Entity enemy)
      Creates a new cutscene screen.
      Parameters:
      game - the game instance
      screen - the previous screen
      container - services from the previous screen
      player - the player entity
      enemy - the enemy entity
  • Method Details

    • render

      public void render(float delta)
      Renders the cutscene screen. Updates the physics engine and entity service, and handles transitioning to the combat screen once the cutscene duration has passed.
      Specified by:
      render in interface com.badlogic.gdx.Screen
      Overrides:
      render in class ResizableScreen
      Parameters:
      delta - The time elapsed since the last frame, in seconds.
    • pause

      public void pause()
      Pauses the cutscene screen. Disables updates and rendering when the game is paused.
      Specified by:
      pause in interface com.badlogic.gdx.Screen
      Overrides:
      pause in class ResizableScreen
    • resume

      public void resume()
      Resumes the cutscene screen. Re-enables updates and rendering when the game is resumed.
      Specified by:
      resume in interface com.badlogic.gdx.Screen
      Overrides:
      resume in class ResizableScreen
    • dispose

      public void dispose()
      Disposes of the resources used by the cutscene screen, including renderer and services. This method is called when the screen is no longer needed.
      Specified by:
      dispose in interface com.badlogic.gdx.Screen
      Overrides:
      dispose in class ResizableScreen
    • setLabelBuffer

      public void setLabelBuffer(Entity.EnemyType enemy)