Package com.screens

Class MainMenuScreen

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

    public class MainMenuScreen
    extends java.lang.Object
    implements com.badlogic.gdx.Screen
    Displays the main menu screen with selection buttons.
    Since:
    23/11/2019
    • Constructor Summary

      Constructors 
      Constructor Description
      MainMenuScreen​(Kroy game)
      The constructor for the main menu screen.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void dispose()  
      com.badlogic.gdx.Screen getThis()
      Used to pass the main menu screen into the controls screen
      void hide()  
      void pause()  
      void render​(float delta)
      Render function to display all elements in the main menu.
      void resize​(int width, int height)  
      void resume()  
      void show()
      Create the button stage.
      • Methods inherited from class java.lang.Object

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

      • MainMenuScreen

        public MainMenuScreen​(Kroy game)
        The constructor for the main menu screen. All game logic for the main menu screen is contained.
        Parameters:
        game - The game object.
    • Method Detail

      • render

        public void render​(float delta)
        Render function to display all elements in the main menu.
        Specified by:
        render in interface com.badlogic.gdx.Screen
        Parameters:
        delta - The delta time of the game, updated every second rather than frame.
      • resize

        public void resize​(int width,
                           int height)
        Specified by:
        resize in interface com.badlogic.gdx.Screen
      • show

        public void show()
        Create the button stage.
        Specified by:
        show in interface com.badlogic.gdx.Screen
      • hide

        public void hide()
        Specified by:
        hide in interface com.badlogic.gdx.Screen
      • pause

        public void pause()
        Specified by:
        pause in interface com.badlogic.gdx.Screen
      • resume

        public void resume()
        Specified by:
        resume in interface com.badlogic.gdx.Screen
      • dispose

        public void dispose()
        Specified by:
        dispose in interface com.badlogic.gdx.Screen
      • getThis

        public com.badlogic.gdx.Screen getThis()
        Used to pass the main menu screen into the controls screen
        Returns:
        main menu screen