Class CaseItem

java.lang.Object
com.prineside.tdi2.Item
com.prineside.tdi2.items.CaseItem
All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable

public class CaseItem extends Item
  • Field Details

    • caseType

      public CaseType caseType
    • encrypted

      public boolean encrypted
    • containsPapers

      public boolean containsPapers
  • Method Details

    • write

      public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
      Specified by:
      write in interface com.esotericsoftware.kryo.KryoSerializable
      Overrides:
      write in class Item
    • read

      public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input)
      Specified by:
      read in interface com.esotericsoftware.kryo.KryoSerializable
      Overrides:
      read in class Item
    • isAffectedByDoubleGain

      public boolean isAffectedByDoubleGain()
      Overrides:
      isAffectedByDoubleGain in class Item
    • from

      public Item from(Item copyFrom)
      Overrides:
      from in class Item
      Returns:
      this with exactly the same properties as @param copyFrom or new item with the same properties (if item is immutable like GreenPaperItem which is stored in Item.D)
    • getData

      public com.badlogic.gdx.utils.IntArray getData()
      Overrides:
      getData in class Item
    • getColor

      public com.badlogic.gdx.graphics.Color getColor()
    • getItemCount

      public int getItemCount()
    • getItemRarityChances

      public int[] getItemRarityChances()
    • getGuaranteedItemType

      public RarityType getGuaranteedItemType()
    • getCasePriceInKeys

      public int getCasePriceInKeys()
    • getCasePriceInPapers

      public int getCasePriceInPapers()
    • getCasePriceInAccelerators

      public int getCasePriceInAccelerators()
    • cpy

      public Item cpy()
      Overrides:
      cpy in class Item
      Returns:
      полная глубокая копия предмета
    • canBeUnpacked

      public boolean canBeUnpacked()
      Overrides:
      canBeUnpacked in class Item
    • openPack

      public com.badlogic.gdx.utils.Array<ItemStack> openPack(ProgressManager.InventoryStatistics inventoryStatistics)
      Overrides:
      openPack in class Item
    • isCountable

      public boolean isCountable()
      Specified by:
      isCountable in class Item
      Returns:
      true, если ItemStack.count учитывается
    • getType

      public ItemType getType()
      Specified by:
      getType in class Item
    • getCategory

      public ItemCategoryType getCategory()
      Specified by:
      getCategory in class Item
    • getSubcategory

      public ItemSubcategoryType getSubcategory()
      Specified by:
      getSubcategory in class Item
    • getTitle

      public CharSequence getTitle()
      Specified by:
      getTitle in class Item
    • getDecryptionTime

      public float getDecryptionTime()
    • getDescription

      public CharSequence getDescription()
      Specified by:
      getDescription in class Item
    • getRarity

      public RarityType getRarity()
      Specified by:
      getRarity in class Item
    • sameAs

      public boolean sameAs(Item item)
      Overrides:
      sameAs in class Item
    • toJson

      public void toJson(com.badlogic.gdx.utils.Json json)
      Overrides:
      toJson in class Item
    • getIconDrawable

      public com.badlogic.gdx.scenes.scene2d.utils.Drawable getIconDrawable()
    • generateIcon

      public com.badlogic.gdx.scenes.scene2d.Actor generateIcon(float size, boolean withShadow)
      Specified by:
      generateIcon in class Item
    • fillItemCreationForm

      public void fillItemCreationForm(ItemCreationOverlay overlay)
      Overrides:
      fillItemCreationForm in class Item