Package com.prineside.tdi2.items
Class CaseItem
java.lang.Object
com.prineside.tdi2.Item
com.prineside.tdi2.items.CaseItem
- All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.prineside.tdi2.Item
Item.D, Item.Factory<T extends Item>, Item.UsableItem -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleancpy()voidfillItemCreationForm(ItemCreationOverlay overlay) com.badlogic.gdx.scenes.scene2d.ActorgenerateIcon(float size, boolean withShadow) intintintcom.badlogic.gdx.graphics.ColorgetColor()com.badlogic.gdx.utils.IntArraygetData()floatcom.badlogic.gdx.scenes.scene2d.utils.Drawableintint[]getTitle()getType()booleanbooleancom.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) Methods inherited from class com.prineside.tdi2.Item
addSellItems, addSellItems, affectedByLuckyWheelMultiplier, canBeSold, fillWithInfo, fromJson, getData, getPriceInAcceleratorsForResearchReset, getSortingScore
-
Field Details
-
caseType
-
encrypted
public boolean encrypted -
containsPapers
public boolean containsPapers
-
-
Method Details
-
write
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) -
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) -
isAffectedByDoubleGain
public boolean isAffectedByDoubleGain()- Overrides:
isAffectedByDoubleGainin classItem
-
from
-
getData
public com.badlogic.gdx.utils.IntArray getData() -
getColor
public com.badlogic.gdx.graphics.Color getColor() -
getItemCount
public int getItemCount() -
getItemRarityChances
public int[] getItemRarityChances() -
getGuaranteedItemType
-
getCasePriceInKeys
public int getCasePriceInKeys() -
getCasePriceInPapers
public int getCasePriceInPapers() -
getCasePriceInAccelerators
public int getCasePriceInAccelerators() -
cpy
-
canBeUnpacked
public boolean canBeUnpacked()- Overrides:
canBeUnpackedin classItem
-
openPack
public com.badlogic.gdx.utils.Array<ItemStack> openPack(ProgressManager.InventoryStatistics inventoryStatistics) -
isCountable
public boolean isCountable()- Specified by:
isCountablein classItem- Returns:
- true, если ItemStack.count учитывается
-
getType
-
getCategory
- Specified by:
getCategoryin classItem
-
getSubcategory
- Specified by:
getSubcategoryin classItem
-
getTitle
-
getDecryptionTime
public float getDecryptionTime() -
getDescription
- Specified by:
getDescriptionin classItem
-
getRarity
-
sameAs
-
toJson
public void toJson(com.badlogic.gdx.utils.Json json) -
getIconDrawable
public com.badlogic.gdx.scenes.scene2d.utils.Drawable getIconDrawable() -
generateIcon
public com.badlogic.gdx.scenes.scene2d.Actor generateIcon(float size, boolean withShadow) - Specified by:
generateIconin classItem
-