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 void
CreateActors()
Create menu widgets such as buttons, labels, etc.void
hide()
Called once the page is hidden.void
resize(int width, int height)
Called once the window is resized updates constants and stagevoid
show()
Called once the page is show sets input handler and adds actorsvoid
update()
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:
CreateActors
in classPage
-
show
public void show()
Description copied from class:Page
Called once the page is show sets input handler and adds actors
-
update
public void update()
Description copied from class:Page
Called once per frame
-
hide
public void hide()
Description copied from class:Page
Called once the page is hidden. sets input handler to null and clears teh stage
-
-