Class PauseScreen

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

    public class PauseScreen
    extends Page
    Added for assessment 2. Provides a menu, accessed by pressing Z, where the player may spend plunder on powerups
    • Field Summary

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

        actors
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void CreateActors()
      Create menu widgets such as buttons, labels, etc.
      void hide()
      Called once the page is hidden.
      void resize​(int width, int height)
      Called once the window is resized updates constants and stage
      void show()
      Called once the page is show sets input handler and adds actors
      void update()
      Called once per frame
      • Methods inherited from class com.mygdx.game.UI.Page

        render
      • 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

      • PauseScreen

        public PauseScreen​(PirateGame parent)
    • Method Detail

      • CreateActors

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

        public void show()
        Description copied from class: Page
        Called once the page is show sets input handler and adds actors
        Specified by:
        show in interface com.badlogic.gdx.Screen
        Overrides:
        show in class Page
      • update

        public void update()
        Description copied from class: Page
        Called once per frame
        Overrides:
        update in class Page
      • hide

        public void hide()
        Description copied from class: Page
        Called once the page is hidden. sets input handler to null and clears teh stage
        Specified by:
        hide in interface com.badlogic.gdx.Screen
        Overrides:
        hide in class Page
      • resize

        public void resize​(int width,
                           int height)
        Description copied from class: Page
        Called once the window is resized updates constants and stage
        Specified by:
        resize in interface com.badlogic.gdx.Screen
        Overrides:
        resize in class Page
        Parameters:
        width - new dim x
        height - new dom y