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)
-
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)
Called once the window is resized updates constants and stagevoid
show()
Get player stats such as plunder and display the game end screen.protected void
update()
Called once per framevoid
win()
Set game end screen status to report a win.
-
-
-
Constructor Detail
-
EndScreen
public EndScreen(PirateGame game)
-
-
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
-
update
protected void update()
Description copied from class:Page
Called once per frame
-
show
public void show()
Get player stats such as plunder and display the game end screen.
-
-