Package com.prineside.tdi2.items
Class ResearchTokenItem
java.lang.Object
com.prineside.tdi2.Item
com.prineside.tdi2.items.ResearchTokenItem
- 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 - 
Method Summary
Modifier and TypeMethodDescriptionbooleancom.badlogic.gdx.scenes.scene2d.ActorgenerateIcon(float size, boolean withShadow) getTitle()getType()booleanbooleanbooleanuseItem()booleanMethods inherited from class com.prineside.tdi2.Item
addSellItems, addSellItems, affectedByLuckyWheelMultiplier, canBeSold, canBeUnpacked, cpy, fillItemCreationForm, fillWithInfo, from, fromJson, getData, getData, getIconDrawable, getPriceInAcceleratorsForResearchReset, getShadowShift, getSortingScore, openPack, read, sameAs, toJson, write 
- 
Method Details
- 
isAffectedByDoubleGain
public boolean isAffectedByDoubleGain()- Overrides:
 isAffectedByDoubleGainin classItem
 - 
getType
 - 
getCategory
- Specified by:
 getCategoryin classItem
 - 
getSubcategory
- Specified by:
 getSubcategoryin classItem
 - 
getTitle
 - 
getDescription
- Specified by:
 getDescriptionin classItem
 - 
getRarity
 - 
getAnalyticName
- Overrides:
 getAnalyticNamein classItem
 - 
isCountable
public boolean isCountable()- Specified by:
 isCountablein classItem- Returns:
 - true, если ItemStack.count учитывается
 
 - 
generateIcon
public com.badlogic.gdx.scenes.scene2d.Actor generateIcon(float size, boolean withShadow) - Specified by:
 generateIconin classItem
 - 
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, если следует спросить у игрока перед тем, как он использует предмет (чтоб не было мисклика)
 
 
 -