Class Hud

All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable

public class Hud extends KScreen implements com.badlogic.gdx.utils.Disposable
Game Hud that display player/game stats.
Since:
0.1
Version:
2.3
  • Constructor Details

    • Hud

      public Hud(com.badlogic.gdx.graphics.g2d.SpriteBatch sb)
      Main constructor
      Parameters:
      sb - SpriteBatch to use
  • Method Details

    • getStage

      public com.badlogic.gdx.scenes.scene2d.Stage getStage()
    • setPlayerScore

      public void setPlayerScore(int value)
    • getGameTime

      public float getGameTime()
    • setGameTime

      public void setGameTime(float gameTime)
      Set the game time.
    • isTimeUp

      public boolean isTimeUp()
    • update

      public void update(float dt)
      Update Component that need to be update on time.
      Parameters:
      dt - Delta time that occure since last update
    • dispose

      public void dispose()
      Specified by:
      dispose in interface com.badlogic.gdx.utils.Disposable