Class InventorySystem

All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable, com.esotericsoftware.kryo.KryoSerializable

public final class InventorySystem extends GameSystem
  • Field Details

  • Constructor Details

    • InventorySystem

      public InventorySystem()
  • Method Details

    • affectsGameState

      public boolean affectsGameState()
      Specified by:
      affectsGameState in class GameSystem
    • getItemsByCategory

      public void getItemsByCategory(ItemSubcategoryType category, com.badlogic.gdx.utils.Array<ItemStack> out)
    • setItems

      public void setItems(com.badlogic.gdx.utils.Array<ItemStack> items)
    • add

      public ItemStack add(Item item, int count)
    • addTile

      public ItemStack addTile(Tile tile, int count)
      Convenience method
    • addGate

      public ItemStack addGate(Gate gate, int count)
      Convenience method
    • remove

      public boolean remove(Item item, int cnt)
    • remove

      public boolean remove(Item item)
    • listDebug

      public String listDebug()
    • profileUpdate

      public boolean profileUpdate()
      Description copied from class: GameSystem
      Нужно ли учитывать время выполнения update() в Debug
      Overrides:
      profileUpdate in class GameSystem
    • getSystemName

      public String getSystemName()
      Specified by:
      getSystemName in class GameSystem
    • dispose

      public void dispose()
      Description copied from interface: com.badlogic.gdx.utils.Disposable
      Releases all resources of this object.
      Specified by:
      dispose in interface com.badlogic.gdx.utils.Disposable
      Overrides:
      dispose in class GameSystem