Class PowerupScreen

  • All Implemented Interfaces:
    com.badlogic.gdx.Screen

    public class PowerupScreen
    extends Page
    NEW Contains widgets defining the shop screen.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void CreateActors()
      Create menu widgets such as start button, labels, etc.
      void hide()
      Called once the page is hidden.
      void render​(float delta)
      Called every frame calls all other functions that need to be called every frame by rasing events and update methods
      void resize​(int width, int height)
      Used to resize the background texture to the correct size to fill the window
      void show()
      Called once the page is show sets input handler and adds actors
      • Methods inherited from class com.mygdx.game.UI.Page

        update
      • Methods inherited from class com.badlogic.gdx.ScreenAdapter

        dispose, pause, resume
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • isImortal

        public static boolean isImortal
      • isIncreasedDamage

        public static boolean isIncreasedDamage
      • isMultiDamage

        public static boolean isMultiDamage
      • isUnlimitedAmmo

        public static boolean isUnlimitedAmmo
      • isFreezeEnemy

        public static boolean isFreezeEnemy
    • 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
        Specified by:
        render in interface com.badlogic.gdx.Screen
        Overrides:
        render in class Page
        Parameters:
        delta - delta time
      • CreateActors

        protected void CreateActors()
        Create menu widgets such as start button, labels, etc.
        Specified by:
        CreateActors in class Page
      • show

        public void show()
        Description copied from class: Page
        Called once the page is show sets input handler and adds actors
        Specified by:
        show in interface com.badlogic.gdx.Screen
        Overrides:
        show in class Page
      • hide

        public void hide()
        Description copied from class: Page
        Called once the page is hidden. sets input handler to null and clears teh stage
        Specified by:
        hide in interface com.badlogic.gdx.Screen
        Overrides:
        hide in class Page
      • resize

        public void resize​(int width,
                           int height)
        Used to resize the background texture to the correct size to fill the window
        Specified by:
        resize in interface com.badlogic.gdx.Screen
        Overrides:
        resize in class Page
        Parameters:
        width - new dim x width of the screen
        height - new dom y height of the screen