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 voiddispose()Disposes this screenvoidhide()Overrides the default hide() method to be blankvoidpause()Overrides the default pause() method to be blankvoidreload()Loads a new instance of this screen and disposes of the current instancevoidrender(float delta)Rendering function for the difficulty screenvoidresize(int width, int height)Resizes viewport to new width and heightvoidresume()Overrides the default resume() method to be blankvoidshow()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:
showin interfacecom.badlogic.gdx.Screen
-
render
public void render(float delta)
Rendering function for the difficulty screen- Specified by:
renderin 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:
resizein interfacecom.badlogic.gdx.Screen- Parameters:
width- new widthheight- new height
-
dispose
public void dispose()
Disposes this screen- Specified by:
disposein 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:
pausein interfacecom.badlogic.gdx.Screen
-
resume
public void resume()
Overrides the default resume() method to be blank- Specified by:
resumein interfacecom.badlogic.gdx.Screen
-
hide
public void hide()
Overrides the default hide() method to be blank- Specified by:
hidein interfacecom.badlogic.gdx.Screen
-
-