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 class
static interface
Item.Factory<T extends Item>
static interface
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSellItems
(com.badlogic.gdx.utils.Array<ItemStack> toStacks) void
addSellItems
(com.badlogic.gdx.utils.Array<ItemStack> toStacks, int countMultiplier) boolean
boolean
boolean
cpy()
void
fillItemCreationForm
(ItemCreationOverlay overlay) void
fillWithInfo
(com.badlogic.gdx.scenes.scene2d.ui.Table table, float width) Наполнить таблицу дополнительной информацией о предмете (без описания)static Item
fromJson
(com.badlogic.gdx.utils.JsonValue jsonValue) abstract com.badlogic.gdx.scenes.scene2d.Actor
generateIcon
(float size, boolean withShadow) abstract ItemCategoryType
com.badlogic.gdx.utils.IntArray
getData()
final int
getData
(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
com.badlogic.gdx.utils.Array<ItemStack>
openPack
(ProgressManager.InventoryStatistics inventoryStatistics) void
read
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) boolean
void
toJson
(com.badlogic.gdx.utils.Json json) void
write
(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:
write
in interfacecom.esotericsoftware.kryo.KryoSerializable
-
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) - Specified by:
read
in 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) Наполнить таблицу дополнительной информацией о предмете (без описания)
-