Class EndScreen

java.lang.Object
com.badlogic.gdx.ScreenAdapter
com.mygdx.game.UI.Page
com.mygdx.game.UI.EndScreen
All Implemented Interfaces:
com.badlogic.gdx.Screen

public class EndScreen
extends Page
Contains widgets defining the game end screen.
  • Field Summary

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

    actors
  • Constructor Summary

    Constructors
    Constructor Description
    EndScreen​(PirateGame game)  
  • Method Summary

    Modifier and Type Method Description
    protected void CreateActors()
    Create game end screen widgets, initialised to game loss status.
    void resize​(int width, int height)
    Called once the window is resized updates constants and stage
    void show()
    Get player stats such as plunder etc.
    protected void update()
    Called once per frame
    void win()
    Set game end screen status to report a win.

    Methods inherited from class com.mygdx.game.UI.Page

    hide, 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 Details

    • EndScreen

      public EndScreen​(PirateGame game)
  • Method Details

    • win

      public void win()
      Set game end screen status to report a win.
    • CreateActors

      protected void CreateActors()
      Create game end screen widgets, initialised to game loss status.
      Specified by:
      CreateActors in class Page
    • update

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

      public void show()
      Get player stats such as plunder etc. and display game end screen.
      Specified by:
      show in interface com.badlogic.gdx.Screen
      Overrides:
      show 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