Class MenuScreen

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

    public class MenuScreen
    extends java.lang.Object
    implements com.badlogic.gdx.Screen
    Screen class for the Menu Screen. Allows the user to select a Boat, and shows the controls of the game. Once the user clicks within set boundaries, the game starts within GameScreen.
    See Also:
    GameScreen, Screen
    • Constructor Summary

      Constructors 
      Constructor Description
      MenuScreen​(DragonBoatGame Game)
      Creates an Input Processor to listen for a mouse click within set boundaries.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void dispose()
      Disposes of the screen when it is no longer needed.
      void hide()
      Overwrites default hide() method to blank
      void pause()
      Overwrites default pause() method to blank
      void render​(float delta)
      Rendering function for the menu screen.
      void resize​(int width, int height)
      Overwrites default resize() method to blank
      void resume()
      Overwrites default resume() method to blank
      void show()
      Overwrites default show() method to blank
      • Methods inherited from class java.lang.Object

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

      • MenuScreen

        public MenuScreen​(DragonBoatGame Game)
        Creates an Input Processor to listen for a mouse click within set boundaries.
        Parameters:
        Game - represents the initial state of DragonBoatGame.
        See Also:
        InputProcessor
    • Method Detail

      • render

        public void render​(float delta)
        Rendering function for the menu screen.
        Specified by:
        render in interface com.badlogic.gdx.Screen
      • dispose

        public void dispose()
        Disposes of the screen when it is no longer needed.
        Specified by:
        dispose in interface com.badlogic.gdx.Screen
      • resize

        public void resize​(int width,
                           int height)
        Overwrites default resize() method to blank
        Specified by:
        resize in interface com.badlogic.gdx.Screen
        Parameters:
        width - does nothing
        height - does nothing
      • pause

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

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

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

        public void show()
        Overwrites default show() method to blank
        Specified by:
        show in interface com.badlogic.gdx.Screen