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 TypeMethodDescriptionboolean
cpy()
void
fillItemCreationForm
(ItemCreationOverlay overlay) com.badlogic.gdx.scenes.scene2d.Actor
generateIcon
(float size, boolean withShadow) int
int
int
com.badlogic.gdx.graphics.Color
getColor()
com.badlogic.gdx.utils.IntArray
getData()
float
com.badlogic.gdx.scenes.scene2d.utils.Drawable
int
int[]
getTitle()
getType()
boolean
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) Methods inherited from class com.prineside.tdi2.Item
addSellItems, addSellItems, affectedByLuckyWheelMultiplier, canBeSold, fillWithInfo, fromJson, getData, getPriceInAcceleratorsForResearchReset, getShadowShift, 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:
isAffectedByDoubleGain
in classItem
-
from
-
getData
public com.badlogic.gdx.utils.IntArray getData() -
getAnalyticName
- Overrides:
getAnalyticName
in classItem
-
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:
canBeUnpacked
in classItem
-
openPack
public com.badlogic.gdx.utils.Array<ItemStack> openPack(ProgressManager.InventoryStatistics inventoryStatistics) -
isCountable
public boolean isCountable()- Specified by:
isCountable
in classItem
- Returns:
- true, если ItemStack.count учитывается
-
getType
-
getCategory
- Specified by:
getCategory
in classItem
-
getSubcategory
- Specified by:
getSubcategory
in classItem
-
getTitle
-
getDecryptionTime
public float getDecryptionTime() -
getDescription
- Specified by:
getDescription
in classItem
-
getRarity
-
sameAs
-
toJson
public void toJson(com.badlogic.gdx.utils.Json json) -
getIconDrawable
public com.badlogic.gdx.scenes.scene2d.utils.Drawable getIconDrawable()- Overrides:
getIconDrawable
in classItem
-
generateIcon
public com.badlogic.gdx.scenes.scene2d.Actor generateIcon(float size, boolean withShadow) - Specified by:
generateIcon
in classItem
-