Class ItemBarDisplay

All Implemented Interfaces:
Disposable, Renderable, java.lang.Comparable<Renderable>

public class ItemBarDisplay
extends UIComponent
  • Constructor Details

  • Method Details

    • create

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

      public static void addorremove​(java.lang.String item, int flag)
      Parameters:
      item - the item should be added or removed in item bar
      flag - int 1 represents add, int -1 represents remove
    • draw

      public void draw​(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.
    • update

      public void update()
      Description copied from class: Component
      Called once per frame of the game, and should be used for most component logic. Not called if component is disabled.
      Overrides:
      update in class Component
    • updateItemBarUI

      public void updateItemBarUI()
    • 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 Disposable
      Overrides:
      dispose in class RenderComponent