Class Countdown

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

public class Countdown extends UIComponent
  • Constructor Details

    • Countdown

      public Countdown()
  • Method Details

    • create

      public void create()
      Creates reusable ui styles and adds actors to the stage.
      Overrides:
      create in class UIComponent
    • setCountdownTrigger

      public void setCountdownTrigger(int skillNum, String listenerName, long cooldownLength)
    • clearCountdownListeners

      public void clearCountdownListeners()
    • update

      public void update()
      Called every frame. Checks cool-down duration if any are active and updates the table accordingly
      Overrides:
      update in class Component
    • draw

      public void draw(com.badlogic.gdx.graphics.g2d.SpriteBatch batch)
      Description copied from class: RenderComponent
      Draw the renderable. Should be called only by the renderer, not manually.
      Specified by:
      draw in class RenderComponent
      Parameters:
      batch - Batch to render to.
    • dispose

      public void dispose()
      Description copied from class: Component
      Called when the component is disposed. Dispose of any internal resources here.
      Specified by:
      dispose in interface com.badlogic.gdx.utils.Disposable
      Overrides:
      dispose in class RenderComponent