Package com.prineside.tdi2
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
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interfaceItem.Factory<T extends Item>static interface - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddSellItems(Array<ItemStack> toStacks) voidaddSellItemsMultiplied(Array<ItemStack> toStacks, int countMultiplier) booleanbooleanbooleancpy()voidfillItemCreationForm(ItemCreationOverlay overlay) voidfillWithInfo(Table table, float width) Fill the additional item info table (no description)static Itemabstract ActorgenerateIcon(float size, boolean withShadow) abstract ItemCategoryTypegetData()final intgetDataOfType(ItemDataType dataType) abstract CharSequencedoublegetPriceInAcceleratorsForResearchReset(int count) abstract RarityTypeintgetSortingScore(ItemSortingType sortingType) abstract ItemSubcategoryTypeabstract CharSequencegetTitle()abstract ItemTypegetType()booleanabstract booleanopenPack(ProgressManager.InventoryStatistics inventoryStatistics) voidbooleanvoidvoid 
- 
Constructor Details
- 
Item
public Item() 
 - 
 - 
Method Details
- 
write
- Specified by:
 writein interfaceKryoSerializable
 - 
read
- Specified by:
 readin interfaceKryoSerializable
 - 
getType
 - 
getCategory
 - 
getSubcategory
 - 
getSortingScore
 - 
getTitle
 - 
getDescription
 - 
getRarity
 - 
getData
 - 
getAnalyticName
 - 
getPriceInAcceleratorsForResearchReset
public double getPriceInAcceleratorsForResearchReset(int count) - Returns:
 - relative value of the item. Score of 1.0 equals to 1 accelerator
 
 - 
getDataOfType
- Returns:
 - Integer.MIN_VALUE if item has no such data
 
 - 
from
- 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
 - 
getIconDrawable
 - 
canBeSold
public boolean canBeSold() - 
addSellItems
 - 
addSellItemsMultiplied
 - 
isCountable
public abstract boolean isCountable()- Returns:
 - true if ItemStack.count is being accounted for
 
 - 
toJson
 - 
toJsonString
 - 
affectedByLuckyWheelMultiplier
public boolean affectedByLuckyWheelMultiplier() - 
cpy
- Returns:
 - deep copy of an item. If item is a singleton, it will be returned instead.
 
 - 
canBeUnpacked
public boolean canBeUnpacked() - 
openPack
 - 
isAffectedByDoubleGain
public boolean isAffectedByDoubleGain() - 
sameAs
 - 
fromJson
 - 
fillWithInfo
Fill the additional item info table (no description) 
 -