Package com.csse3200.game.screens
Class LoadGameScreen
java.lang.Object
com.badlogic.gdx.ScreenAdapter
com.csse3200.game.screens.LoadGameScreen
- All Implemented Interfaces:
com.badlogic.gdx.Screen
public class LoadGameScreen
extends com.badlogic.gdx.ScreenAdapter
The game screen containing the load menu.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Entity
constructEntity
(com.badlogic.gdx.scenes.scene2d.Stage stage) Creates the load menu's ui including components for rendering ui elements to the screen and capturing and handling ui input.void
dispose()
void
render
(float delta) void
resize
(int width, int height) Methods inherited from class com.badlogic.gdx.ScreenAdapter
hide, pause, resume, show
-
Field Details
-
game
-
renderer
-
backgroundTexture
-
additionalTextures
-
-
Constructor Details
-
LoadGameScreen
Constructor for the load game screen.- Parameters:
game
- the game instance
-
-
Method Details
-
constructEntity
Creates the load menu's ui including components for rendering ui elements to the screen and capturing and handling ui input.- Parameters:
stage
- the stage to create the UI screen on- Returns:
- the UI entity
-
render
public void render(float delta) - Specified by:
render
in interfacecom.badlogic.gdx.Screen
- Overrides:
render
in classcom.badlogic.gdx.ScreenAdapter
-
resize
public void resize(int width, int height) - Specified by:
resize
in interfacecom.badlogic.gdx.Screen
- Overrides:
resize
in classcom.badlogic.gdx.ScreenAdapter
-
dispose
public void dispose()- Specified by:
dispose
in interfacecom.badlogic.gdx.Screen
- Overrides:
dispose
in classcom.badlogic.gdx.ScreenAdapter
-