Class 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 screen
      void hide()
      Overrides the default hide() method to be blank
      void pause()
      Overrides the default pause() method to be blank
      void reload()
      Loads a new instance of this screen and disposes of the current instance
      void render​(float delta)
      Rendering function for the difficulty screen
      void resize​(int width, int height)
      Resizes viewport to new width and height
      void resume()
      Overrides the default resume() method to be blank
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 interface com.badlogic.gdx.Screen
      • render

        public void render​(float delta)
        Rendering function for the difficulty screen
        Specified by:
        render in interface com.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 interface com.badlogic.gdx.Screen
        Parameters:
        width - new width
        height - new height
      • dispose

        public void dispose()
        Disposes this screen
        Specified by:
        dispose in interface com.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 interface com.badlogic.gdx.Screen
      • resume

        public void resume()
        Overrides the default resume() method to be blank
        Specified by:
        resume in interface com.badlogic.gdx.Screen
      • hide

        public void hide()
        Overrides the default hide() method to be blank
        Specified by:
        hide in interface com.badlogic.gdx.Screen