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.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description EndScreen(PirateGame game) -
Method Summary
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.Methods inherited from class com.badlogic.gdx.ScreenAdapter
dispose, pause, resumeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
EndScreen
-
-
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:
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. -
resize
public void resize(int width, int height)Description copied from class:PageCalled once the window is resized updates constants and stage
-