Package com.prineside.tdi2
Class Item
java.lang.Object
com.prineside.tdi2.Item
- All Implemented Interfaces:
com.esotericsoftware.kryo.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(com.badlogic.gdx.utils.Array<ItemStack> toStacks) voidaddSellItems(com.badlogic.gdx.utils.Array<ItemStack> toStacks, int countMultiplier) booleanbooleanbooleancpy()voidfillItemCreationForm(ItemCreationOverlay overlay) voidfillWithInfo(com.badlogic.gdx.scenes.scene2d.ui.Table table, float width) Наполнить таблицу дополнительной информацией о предмете (без описания)static ItemfromJson(com.badlogic.gdx.utils.JsonValue jsonValue) abstract com.badlogic.gdx.scenes.scene2d.ActorgenerateIcon(float size, boolean withShadow) abstract ItemCategoryTypecom.badlogic.gdx.utils.IntArraygetData()final intgetData(ItemDataType dataType) abstract CharSequencedoublegetPriceInAcceleratorsForResearchReset(int count) abstract RarityTypeintgetSortingScore(ItemSortingType sortingType) abstract ItemSubcategoryTypeabstract CharSequencegetTitle()abstract ItemTypegetType()booleanabstract booleancom.badlogic.gdx.utils.Array<ItemStack>openPack(ProgressManager.InventoryStatistics inventoryStatistics) voidread(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) booleanvoidtoJson(com.badlogic.gdx.utils.Json json) voidwrite(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
-
Constructor Details
-
Item
public Item()
-
-
Method Details
-
write
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) - Specified by:
writein interfacecom.esotericsoftware.kryo.KryoSerializable
-
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) - Specified by:
readin interfacecom.esotericsoftware.kryo.KryoSerializable
-
getType
-
getCategory
-
getSubcategory
-
getSortingScore
-
getTitle
-
getDescription
-
getRarity
-
getData
public com.badlogic.gdx.utils.IntArray getData() -
getPriceInAcceleratorsForResearchReset
public double getPriceInAcceleratorsForResearchReset(int count) - Returns:
- relative value of the item. Score of 1.0 equals to 1 accelerator
-
getData
- Returns:
- Integer.MIN_VALUE, если у предмета нет таких данных
-
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
public abstract com.badlogic.gdx.scenes.scene2d.Actor generateIcon(float size, boolean withShadow) -
canBeSold
public boolean canBeSold() -
addSellItems
-
addSellItems
-
isCountable
public abstract boolean isCountable()- Returns:
- true, если ItemStack.count учитывается
-
toJson
public void toJson(com.badlogic.gdx.utils.Json json) -
affectedByLuckyWheelMultiplier
public boolean affectedByLuckyWheelMultiplier() -
cpy
- Returns:
- полная глубокая копия предмета
-
canBeUnpacked
public boolean canBeUnpacked() -
openPack
public com.badlogic.gdx.utils.Array<ItemStack> openPack(ProgressManager.InventoryStatistics inventoryStatistics) -
isAffectedByDoubleGain
public boolean isAffectedByDoubleGain() -
sameAs
-
fromJson
-
fillWithInfo
public void fillWithInfo(com.badlogic.gdx.scenes.scene2d.ui.Table table, float width) Наполнить таблицу дополнительной информацией о предмете (без описания)
-