Package com.mygdx.game.UI
Class PauseScreen
- java.lang.Object
-
- com.badlogic.gdx.ScreenAdapter
-
- com.mygdx.game.UI.Page
-
- com.mygdx.game.UI.PauseScreen
-
- All Implemented Interfaces:
com.badlogic.gdx.Screen
public class PauseScreen extends Page
Added for assessment 2. Provides a menu, accessed by pressing Z, where the player may spend plunder on powerups
-
-
Constructor Summary
Constructors Constructor Description PauseScreen(PirateGame parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidCreateActors()Create menu widgets such as buttons, labels, etc.voidhide()Called once the page is hidden.voidresize(int width, int height)Called once the window is resized updates constants and stagevoidshow()Called once the page is show sets input handler and adds actorsvoidupdate()Called once per frame
-
-
-
Constructor Detail
-
PauseScreen
public PauseScreen(PirateGame parent)
-
-
Method Detail
-
CreateActors
protected void CreateActors()
Create menu widgets such as buttons, labels, etc.- Specified by:
CreateActorsin classPage
-
show
public void show()
Description copied from class:PageCalled once the page is show sets input handler and adds actors
-
update
public void update()
Description copied from class:PageCalled once per frame
-
hide
public void hide()
Description copied from class:PageCalled once the page is hidden. sets input handler to null and clears teh stage
-
-