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
New for Assessment 2, added to allow the addition of a restart button without causing screen clutter. Contains widgets defining the pause screen.
-
-
Constructor Summary
Constructors Constructor Description PauseScreen(PirateGame game)Creates a Pause Screen
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidCreateActors()voidresize(int width, int height)Resizes the viewportprotected voidupdate()Called Once per frame
-
-
-
Constructor Detail
-
PauseScreen
public PauseScreen(PirateGame game)
Creates a Pause Screen- Parameters:
game- The game object this screen is viewing
-
-
Method Detail
-
CreateActors
protected void CreateActors()
- Specified by:
CreateActorsin classPage
-
-