Class UIOverlay


  • public class UIOverlay
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      UIOverlay​(com.badlogic.gdx.scenes.scene2d.Stage uiStage, PiazzaPanicGame game)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void finishGameUI()
      Show the label displaying that the game has finished along with the time it took to complete.
      void init()
      Reset values and UI to be in their default state.
      void updateChefUI​(Chef chef)
      Show the image of the currently selected chef as well as have the stack of ingredients currently held by the chef.
      void updateRecipeCounter​(int remainingRecipes)
      Update the number of remaining recipes to be displayed.
      void updateRecipeUI​(Recipe recipe)
      Show the current requested recipe that the player needs to make, the ingredients for that, and the number of remaining recipes.
      • Methods inherited from class java.lang.Object

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

      • UIOverlay

        public UIOverlay​(com.badlogic.gdx.scenes.scene2d.Stage uiStage,
                         PiazzaPanicGame game)
    • Method Detail

      • init

        public void init()
        Reset values and UI to be in their default state.
      • updateChefUI

        public void updateChefUI​(Chef chef)
        Show the image of the currently selected chef as well as have the stack of ingredients currently held by the chef.
        Parameters:
        chef - The chef that is currently selected for which to show the UI.
      • finishGameUI

        public void finishGameUI()
        Show the label displaying that the game has finished along with the time it took to complete.
      • updateRecipeUI

        public void updateRecipeUI​(Recipe recipe)
        Show the current requested recipe that the player needs to make, the ingredients for that, and the number of remaining recipes.
        Parameters:
        recipe - The recipe to display the ingredients for.
      • updateRecipeCounter

        public void updateRecipeCounter​(int remainingRecipes)
        Update the number of remaining recipes to be displayed.
        Parameters:
        remainingRecipes - The number of remaining recipes.