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 voidCreateActors()Create game end screen widgets, initialised to game loss status.voidresize(int width, int height)Called once the window is resized updates constants and stagevoidshow()Get player stats such as plunder etc.protected voidupdate()Called once per framevoidwin()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:
CreateActorsin classPage
-
update
protected void update()
Description copied from class:PageCalled once per frame
-
show
public void show()
Get player stats such as plunder etc. and display game end screen.
-
-