Class DifficultyScreen

  • All Implemented Interfaces:
    com.badlogic.gdx.Screen

    public class DifficultyScreen
    extends java.lang.Object
    implements com.badlogic.gdx.Screen
    Difficulty Screen class for Dragon Boat Game. This is the select screen for difficulty. Once difficulty clicked game will proceed to menu screen where to select a boat. Selected difficulty chosen as integer and alters amount of obstacles and speed of them in GameScreen
    See Also:
    MenuScreen
    • Constructor Summary

      Constructors 
      Constructor Description
      DifficultyScreen​(DragonBoatGame Game)
      Creates a difficulty screen using textbuttons tht once pressed proceed
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void dispose()
      Disposes this screen
      void hide()
      Overwrites default hide() method as blank
      void pause()
      Overwrites default pause() method as blank
      void render​(float delta)
      Rendering function for the difficulty screen
      void resize​(int width, int height)
      Resize viewport to a new width and height
      void resume()
      Overwrites default resume() method as blank
      void show()
      Creates a difficulty screen using TextButtons that once pressed proceed to set difficulty and proceed to boat select screen of menu screen
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DifficultyScreen

        public DifficultyScreen​(DragonBoatGame Game)
        Creates a difficulty screen using textbuttons tht once pressed proceed
        Parameters:
        Game - represents the initial state of DragonBoatGame
    • Method Detail

      • show

        public void show()
        Creates a difficulty screen using TextButtons that once pressed proceed to set difficulty and proceed to boat select screen of menu screen
        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)
        Resize viewport to a new width and height
        Specified by:
        resize in interface com.badlogic.gdx.Screen
        Parameters:
        width - new width
        height - new height
      • pause

        public void pause()
        Overwrites default pause() method as blank
        Specified by:
        pause in interface com.badlogic.gdx.Screen
      • resume

        public void resume()
        Overwrites default resume() method as blank
        Specified by:
        resume in interface com.badlogic.gdx.Screen
      • hide

        public void hide()
        Overwrites default hide() method as blank
        Specified by:
        hide in interface com.badlogic.gdx.Screen
      • dispose

        public void dispose()
        Disposes this screen
        Specified by:
        dispose in interface com.badlogic.gdx.Screen