Package com.dragonboat.game
Class SaveGameScreen
- java.lang.Object
-
- com.dragonboat.game.SaveGameScreen
-
- All Implemented Interfaces:
com.badlogic.gdx.Screen
public class SaveGameScreen extends java.lang.Object implements com.badlogic.gdx.Screen
-
-
Constructor Summary
Constructors Constructor Description SaveGameScreen(DragonBoatGame game)
Creates a Save game screen using textbuttons that once pressed proceed to either save or load a game
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Disposes this screenvoid
hide()
Overrides the default hide() method to be blankvoid
pause()
Overrides the default pause() method to be blankvoid
reload()
Loads a new instance of this screen and disposes of the current instancevoid
render(float delta)
Rendering function for the difficulty screenvoid
resize(int width, int height)
Resizes viewport to new width and heightvoid
resume()
Overrides the default resume() method to be blankvoid
show()
Creates a load/save screen using TextButtons that once pressed proceed to save game and exit or proceed to load a new game from previous save.
-
-
-
Constructor Detail
-
SaveGameScreen
public SaveGameScreen(DragonBoatGame game)
Creates a Save game screen using textbuttons that once pressed proceed to either save or load a game- Parameters:
game
- represents the initial state of DragonBoatGame
-
-
Method Detail
-
show
public void show()
Creates a load/save screen using TextButtons that once pressed proceed to save game and exit or proceed to load a new game from previous save.- Specified by:
show
in interfacecom.badlogic.gdx.Screen
-
render
public void render(float delta)
Rendering function for the difficulty screen- Specified by:
render
in interfacecom.badlogic.gdx.Screen
- Parameters:
delta
- acts as time
-
resize
public void resize(int width, int height)
Resizes viewport to new width and height- Specified by:
resize
in interfacecom.badlogic.gdx.Screen
- Parameters:
width
- new widthheight
- new height
-
dispose
public void dispose()
Disposes this screen- Specified by:
dispose
in interfacecom.badlogic.gdx.Screen
-
reload
public void reload()
Loads a new instance of this screen and disposes of the current instance
-
pause
public void pause()
Overrides the default pause() method to be blank- Specified by:
pause
in interfacecom.badlogic.gdx.Screen
-
resume
public void resume()
Overrides the default resume() method to be blank- Specified by:
resume
in interfacecom.badlogic.gdx.Screen
-
hide
public void hide()
Overrides the default hide() method to be blank- Specified by:
hide
in interfacecom.badlogic.gdx.Screen
-
-