Package com.prineside.tdi2.items
Class CaseKeyItem
java.lang.Object
com.prineside.tdi2.Item
com.prineside.tdi2.items.CaseKeyItem
- All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable
,Item.UsableItem
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
Nested 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 TypeMethodDescriptionvoid
addSellItems
(com.badlogic.gdx.utils.Array<ItemStack> toStacks) boolean
boolean
com.badlogic.gdx.scenes.scene2d.Actor
generateIcon
(float size, boolean withShadow) com.badlogic.gdx.utils.IntArray
getData()
getTitle()
getType()
boolean
boolean
boolean
void
toJson
(com.badlogic.gdx.utils.Json json) boolean
useItem()
boolean
Methods inherited from class com.prineside.tdi2.Item
addSellItems, affectedByLuckyWheelMultiplier, canBeUnpacked, cpy, fillItemCreationForm, fillWithInfo, fromJson, getData, getIconDrawable, getPriceInAcceleratorsForResearchReset, getSortingScore, openPack, read, write
-
Field Details
-
caseType
-
-
Method Details
-
isAffectedByDoubleGain
public boolean isAffectedByDoubleGain()- Overrides:
isAffectedByDoubleGain
in classItem
-
from
-
canBeSold
public boolean canBeSold() -
getAnalyticName
- Overrides:
getAnalyticName
in classItem
-
addSellItems
- Overrides:
addSellItems
in classItem
-
getData
public com.badlogic.gdx.utils.IntArray getData() -
getType
-
getCategory
- Specified by:
getCategory
in classItem
-
getSubcategory
- Specified by:
getSubcategory
in classItem
-
getTitle
-
getDescription
- Specified by:
getDescription
in classItem
-
sameAs
-
getRarity
-
toJson
public void toJson(com.badlogic.gdx.utils.Json json) -
generateIcon
public com.badlogic.gdx.scenes.scene2d.Actor generateIcon(float size, boolean withShadow) - Specified by:
generateIcon
in classItem
-
isCountable
public boolean isCountable()- Specified by:
isCountable
in classItem
- Returns:
- true, если ItemStack.count учитывается
-
autoUseWhenAdded
public boolean autoUseWhenAdded()- Specified by:
autoUseWhenAdded
in interfaceItem.UsableItem
- Returns:
- true, если предмет нужно использовать сразу при добавлении в инвентарь
-
useItem
public boolean useItem()- Specified by:
useItem
in interfaceItem.UsableItem
- Returns:
- true, если предмет был использован и расходован
-
useItemNeedsConfirmation
public boolean useItemNeedsConfirmation()- Specified by:
useItemNeedsConfirmation
in interfaceItem.UsableItem
- Returns:
- true, если следует спросить у игрока перед тем, как он использует предмет (чтоб не было мисклика)
-