Package com.mygdx.game.UI
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.
-
-
Constructor Summary
Constructors Constructor Description EndScreen(PirateGame game)
Creates an End Screen
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
CreateActors()
Create game end screen widgets, initialised to game loss status.void
resize(int width, int height)
Resizes the viewportvoid
show()
Get player stats such as plunder etc.protected void
update()
Called Once per Framevoid
win()
Set game end screen status to report a win.
-
-
-
Constructor Detail
-
EndScreen
public EndScreen(PirateGame game)
Creates an End Screen- Parameters:
game
- The game object this screen is viewing
-
-
Method Detail
-
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 classPage
-
show
public void show()
Get player stats such as plunder etc. and display game end screen.
-
-