Class BuffDisplayComponent

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

public class BuffDisplayComponent extends UIComponent
  • Constructor Details

    • BuffDisplayComponent

      public BuffDisplayComponent()
  • Method Details

    • create

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

      protected 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.
    • setBuff

      public void setBuff(String auraDesc)
      Set the buff to be displayed as the currently applied buff on the weapon.
    • clearBuff

      public void clearBuff()
      Clears the buff from the display