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 classstatic classNested 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 TypeMethodDescriptionvoidaddSellItems(com.badlogic.gdx.utils.Array<ItemStack> toStacks) booleanbooleancom.badlogic.gdx.scenes.scene2d.ActorgenerateIcon(float size, boolean withShadow) com.badlogic.gdx.utils.IntArraygetData()getTitle()getType()booleanbooleanbooleanvoidtoJson(com.badlogic.gdx.utils.Json json) booleanuseItem()booleanMethods inherited from class com.prineside.tdi2.Item
addSellItems, affectedByLuckyWheelMultiplier, canBeUnpacked, cpy, fillItemCreationForm, fillWithInfo, fromJson, getData, getPriceInAcceleratorsForResearchReset, getSortingScore, openPack, read, write 
- 
Field Details
- 
caseType
 
 - 
 - 
Method Details
- 
isAffectedByDoubleGain
public boolean isAffectedByDoubleGain()- Overrides:
 isAffectedByDoubleGainin classItem
 - 
from
 - 
canBeSold
public boolean canBeSold() - 
addSellItems
- Overrides:
 addSellItemsin classItem
 - 
getData
public com.badlogic.gdx.utils.IntArray getData() - 
getType
 - 
getCategory
- Specified by:
 getCategoryin classItem
 - 
getSubcategory
- Specified by:
 getSubcategoryin classItem
 - 
getTitle
 - 
getDescription
- Specified by:
 getDescriptionin 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:
 generateIconin classItem
 - 
isCountable
public boolean isCountable()- Specified by:
 isCountablein classItem- Returns:
 - true, если ItemStack.count учитывается
 
 - 
autoUseWhenAdded
public boolean autoUseWhenAdded()- Specified by:
 autoUseWhenAddedin interfaceItem.UsableItem- Returns:
 - true, если предмет нужно использовать сразу при добавлении в инвентарь
 
 - 
useItem
public boolean useItem()- Specified by:
 useItemin interfaceItem.UsableItem- Returns:
 - true, если предмет был использован и расходован
 
 - 
useItemNeedsConfirmation
public boolean useItemNeedsConfirmation()- Specified by:
 useItemNeedsConfirmationin interfaceItem.UsableItem- Returns:
 - true, если следует спросить у игрока перед тем, как он использует предмет (чтоб не было мисклика)
 
 
 -