Class PauseScreen

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

    public class PauseScreen
    extends Page
    New for Assessment 2, added to allow the addition of a restart button without causing screen clutter. Contains widgets defining the pause screen.
    • Field Summary

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

        actors
    • Constructor Summary

      Constructors 
      Constructor Description
      PauseScreen​(PirateGame game)
      Creates a Pause Screen
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void CreateActors()  
      void resize​(int width, int height)
      Resizes the viewport
      protected void update()
      Called Once per frame
      • 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 game)
        Creates a Pause Screen
        Parameters:
        game - The game object this screen is viewing
    • Method Detail

      • CreateActors

        protected void CreateActors()
        Specified by:
        CreateActors in class Page
      • update

        protected void update()
        Called Once per frame
        Overrides:
        update 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