Class InventorySystem

All Implemented Interfaces:
Disposable, KryoSerializable

public class InventorySystem extends GameSystem
  • Constructor Details

    • InventorySystem

      public InventorySystem()
  • Method Details

    • setup

      public void setup()
      Description copied from class: GameSystem
      Произвести начальную настройку системы. На момент вызова этого метода, systemProvider содержит объекты всех систем.
      Overrides:
      setup in class GameSystem
    • affectsGameState

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

      public DelayedRemovalArray<ItemStack> getItemsBySubCategory(ItemSubcategoryType category)
    • getAllItems

      public Array<DelayedRemovalArray<ItemStack>> getAllItems()
    • initAddItem

      public void initAddItem(Item item, int count)
      Used only by game mode / managers outside of map editor logic Ignores GM.isInventoryStatic()
    • initAddItems

      public void initAddItems(Array<ItemStack> items)
      Used only by game mode / managers outside of map editor logic Ignores GM.isInventoryStatic()
    • add

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

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

      public void addGate(Gate gate, int count)
      Convenience method
    • setStaticMode

      public void setStaticMode(boolean staticMode)
    • contains

      public boolean contains(Item item, int count)
    • remove

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

      public boolean remove(Item item)
    • 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 Disposable
      Overrides:
      dispose in class GameSystem