Package com.mygdx.game.UI
Class DifficultyScreen
- java.lang.Object
-
- com.badlogic.gdx.ScreenAdapter
-
- com.mygdx.game.UI.Page
-
- com.mygdx.game.UI.DifficultyScreen
-
- All Implemented Interfaces:
com.badlogic.gdx.Screen
public class DifficultyScreen extends Page
Added for assessment 2 You are presented with 3 difficulties; easy, medium and hard. The default is medium.
-
-
Constructor Summary
Constructors Constructor Description DifficultyScreen(PirateGame parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
CreateActors()
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 actors
-
-
-
Constructor Detail
-
DifficultyScreen
public DifficultyScreen(PirateGame parent)
-
-
Method Detail
-
CreateActors
protected void CreateActors()
- 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
-
hide
public void hide()
Description copied from class:Page
Called once the page is hidden. sets input handler to null and clears teh stage
-
-