Package com.csse3200.game.screens
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
ConstructorsConstructorDescriptionEnemyTransitionCutSceneScreen
(GdxGame game, Entity enemy) Constructor for EnemyTransitionCutSceneScreen. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Displays the images on the stage.void
dispose()
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
show()
Methods inherited from class com.badlogic.gdx.ScreenAdapter
hide, pause, resume
-
Constructor Details
-
EnemyTransitionCutSceneScreen
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
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 interfacecom.badlogic.gdx.Screen
- Overrides:
resize
in classcom.badlogic.gdx.ScreenAdapter
-
dispose
public void dispose()Disposes of resources when screen is no longer needed.- Specified by:
dispose
in interfacecom.badlogic.gdx.Screen
- Overrides:
dispose
in classcom.badlogic.gdx.ScreenAdapter
-
show
public void show()- Specified by:
show
in interfacecom.badlogic.gdx.Screen
- Overrides:
show
in classcom.badlogic.gdx.ScreenAdapter
-
render
public void render(float delta) - Specified by:
render
in interfacecom.badlogic.gdx.Screen
- Overrides:
render
in classcom.badlogic.gdx.ScreenAdapter
-