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 class
static interface
Item.Factory<T extends Item>
static interface
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSellItems
(Array<ItemStack> toStacks) void
addSellItemsMultiplied
(Array<ItemStack> toStacks, int countMultiplier) boolean
boolean
boolean
cpy()
void
fillItemCreationForm
(ItemCreationOverlay overlay) void
fillWithInfo
(Table table, float width) Fill the additional item info table (no description)static Item
abstract Actor
generateIcon
(float size, boolean withShadow) abstract ItemCategoryType
getData()
final int
getDataOfType
(ItemDataType dataType) abstract CharSequence
double
getPriceInAcceleratorsForResearchReset
(int count) abstract RarityType
int
getSortingScore
(ItemSortingType sortingType) abstract ItemSubcategoryType
abstract CharSequence
getTitle()
abstract ItemType
getType()
boolean
abstract boolean
openPack
(ProgressManager.InventoryStatistics inventoryStatistics) void
boolean
void
void
-
Constructor Details
-
Item
public Item()
-
-
Method Details
-
write
- Specified by:
write
in interfaceKryoSerializable
-
read
- Specified by:
read
in 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)
-