Package com.mygdx.game.UI
Class PowerupScreen
- java.lang.Object
-
- com.badlogic.gdx.ScreenAdapter
-
- com.mygdx.game.UI.Page
-
- com.mygdx.game.UI.PowerupScreen
-
- All Implemented Interfaces:
com.badlogic.gdx.Screen
public class PowerupScreen extends Page
NEW Contains widgets defining the shop screen.
-
-
Field Summary
Fields Modifier and Type Field Description static booleanisFreezeEnemystatic booleanisImortalstatic booleanisIncreasedDamagestatic booleanisMultiDamagestatic booleanisUnlimitedAmmo
-
Constructor Summary
Constructors Constructor Description PowerupScreen(PirateGame parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidCreateActors()Create menu widgets such as start button, labels, etc.voidhide()Called once the page is hidden.voidrender(float delta)Called every frame calls all other functions that need to be called every frame by rasing events and update methodsvoidresize(int width, int height)Used to resize the background texture to the correct size to fill the windowvoidshow()Called once the page is show sets input handler and adds actors
-
-
-
Constructor Detail
-
PowerupScreen
public PowerupScreen(PirateGame parent)
-
-
Method Detail
-
render
public void render(float delta)
Called every frame calls all other functions that need to be called every frame by rasing events and update methods
-
CreateActors
protected void CreateActors()
Create menu widgets such as start button, 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
-
hide
public void hide()
Description copied from class:PageCalled once the page is hidden. sets input handler to null and clears teh stage
-
resize
public void resize(int width, int height)Used to resize the background texture to the correct size to fill the window
-
-