Class GameOverWindow

All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable, Renderable, Comparable<Renderable>

public class GameOverWindow extends UIComponent
Class to create and display a window when the game ends. This should probably be changed for a custom dialog.
  • Constructor Details

    • GameOverWindow

      public GameOverWindow()
  • Method Details

    • create

      public void create()
      Creates the game over window.
      Overrides:
      create in class UIComponent
    • update

      public void update()
      Checks the status of the popup display
      Overrides:
      update in class Component
    • dispose

      public void dispose()
      Frees the memory.
      Specified by:
      dispose in interface com.badlogic.gdx.utils.Disposable
      Overrides:
      dispose in class RenderComponent
    • draw

      protected void draw(com.badlogic.gdx.graphics.g2d.SpriteBatch batch)
      Draws a sprite batch.
      Specified by:
      draw in class RenderComponent
      Parameters:
      batch - Batch to render to.