Class CombatInventoryDisplay

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

public class CombatInventoryDisplay extends InventoryDisplay
  • Constructor Details

    • CombatInventoryDisplay

      public CombatInventoryDisplay(Inventory inventory, int numCols, int hotBarCapacity, GdxGame game)
      Constructs a PlayerInventoryDisplay with the specified capacity and number of columns. The capacity must be evenly divisible by the number of columns.
      Parameters:
      inventory - The inventory from which to build the display
      numCols - The number of columns in the inventory display.
      hotBarCapacity - The number of slots allocated to the hotBar
      Throws:
      IllegalArgumentException - if numCols is less than 1 or if capacity is not divisible by numCols.
  • Method Details