Class MenuScreen

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

    public class MenuScreen
    extends Page
    Contains widgets defining the start-of-game menu screen.
    • Field Summary

      • Fields inherited from class com.mygdx.game.UI.Page

        actors
    • Constructor Summary

      Constructors 
      Constructor Description
      MenuScreen​(PirateGame parent)
      Creates a Menu Screen
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void CreateActors()
      Create menu widgets such as start button, labels, etc.
      void hide()
      Hides the Menu Screen
      void resize​(int width, int height)
      Resizes the viewport
      void show()
      Shows the Menu Screen
      • Methods inherited from class com.badlogic.gdx.ScreenAdapter

        dispose, pause, resume
      • Methods inherited from class java.lang.Object

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

      • MenuScreen

        public MenuScreen​(PirateGame parent)
        Creates a Menu Screen
        Parameters:
        parent - The game object this screen is viewing
    • Method Detail

      • CreateActors

        protected void CreateActors()
        Create menu widgets such as start button, labels, etc.
        Specified by:
        CreateActors in class Page
      • show

        public void show()
        Shows the Menu Screen
        Specified by:
        show in interface com.badlogic.gdx.Screen
        Overrides:
        show in class Page
      • hide

        public void hide()
        Hides the Menu Screen
        Specified by:
        hide in interface com.badlogic.gdx.Screen
        Overrides:
        hide in class Page
      • resize

        public void resize​(int width,
                           int height)
        Resizes the viewport
        Specified by:
        resize in interface com.badlogic.gdx.Screen
        Overrides:
        resize in class Page
        Parameters:
        width - The horizontal dimension of the viewport
        height - The vertical dimension of the viewport