Class Item

java.lang.Object
com.prineside.tdi2.Item
All Implemented Interfaces:
KryoSerializable
Direct Known Subclasses:
AbilityItem, AbilityTokenItem, AcceleratorItem, BitDustItem, BlueprintItem, CaseItem, CaseKeyItem, DatPaperItem, DoubleGainShardItem, GameValueGlobalItem, GameValueLevelItem, GateItem, GreenPaperItem, LootBoostItem, LuckyShotTokenItem, OpenedResearchItem, PrestigeDustItem, PrestigeTokenItem, RandomBarrierItem, RandomTeleportItem, RandomTileItem, RarityBoostItem, ResearchTokenItem, ResearchTokenUsedItem, ResourceItem, SkillPointItem, StarItem, TileItem, TrophyItem

public abstract class Item extends Object implements KryoSerializable
  • Constructor Details

    • Item

      public Item()
  • Method Details

    • write

      public void write(Kryo kryo, Output output)
      Specified by:
      write in interface KryoSerializable
    • read

      public void read(Kryo kryo, Input input)
      Specified by:
      read in interface KryoSerializable
    • getType

      public abstract ItemType getType()
    • getCategory

      public abstract ItemCategoryType getCategory()
    • getSubcategory

      public abstract ItemSubcategoryType getSubcategory()
    • getSortingScore

      public int getSortingScore(ItemSortingType sortingType)
    • getTitle

      public abstract CharSequence getTitle()
    • getDescription

      public abstract CharSequence getDescription()
    • getRarity

      public abstract RarityType getRarity()
    • getData

      public IntArray getData()
    • getAnalyticName

      public String getAnalyticName()
    • getPriceInAcceleratorsForResearchReset

      public double getPriceInAcceleratorsForResearchReset(int count)
      Returns:
      relative value of the item. Score of 1.0 equals to 1 accelerator
    • getData

      public final int getData(ItemDataType dataType)
      Returns:
      Integer.MIN_VALUE, если у предмета нет таких данных
    • from

      public Item from(Item copyFrom)
      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)
    • generateIcon

      public abstract Actor generateIcon(float size, boolean withShadow)
    • getIconDrawable

      @Null public Drawable getIconDrawable()
    • canBeSold

      public boolean canBeSold()
    • addSellItems

      public void addSellItems(Array<ItemStack> toStacks)
    • addSellItems

      public void addSellItems(Array<ItemStack> toStacks, int countMultiplier)
    • fillItemCreationForm

      public void fillItemCreationForm(ItemCreationOverlay overlay)
    • isCountable

      public abstract boolean isCountable()
      Returns:
      true, если ItemStack.count учитывается
    • toJson

      public void toJson(Json json)
    • toJsonString

      public String toJsonString()
    • affectedByLuckyWheelMultiplier

      public boolean affectedByLuckyWheelMultiplier()
    • cpy

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

      public boolean canBeUnpacked()
    • openPack

      public Array<ItemStack> openPack(ProgressManager.InventoryStatistics inventoryStatistics)
    • isAffectedByDoubleGain

      public boolean isAffectedByDoubleGain()
    • sameAs

      public boolean sameAs(Item item)
    • fromJson

      public static Item fromJson(JsonValue jsonValue)
    • fillWithInfo

      public void fillWithInfo(Table table, float width)
      Наполнить таблицу дополнительной информацией о предмете (без описания)