Package com.prineside.tdi2.items
Class PrestigeTokenItem
java.lang.Object
com.prineside.tdi2.Item
com.prineside.tdi2.items.PrestigeTokenItem
- 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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
com.badlogic.gdx.scenes.scene2d.Actor
generateIcon
(float size, boolean withShadow) double
getPriceInAcceleratorsForResearchReset
(int count) getTitle()
getType()
boolean
boolean
useItem()
boolean
Methods inherited from class com.prineside.tdi2.Item
addSellItems, addSellItems, affectedByLuckyWheelMultiplier, canBeSold, canBeUnpacked, cpy, fillItemCreationForm, fillWithInfo, from, fromJson, getData, getData, getSortingScore, isAffectedByDoubleGain, openPack, read, sameAs, toJson, write
-
Method Details
-
getType
-
getCategory
- Specified by:
getCategory
in classItem
-
getSubcategory
- Specified by:
getSubcategory
in classItem
-
getTitle
-
getDescription
- Specified by:
getDescription
in classItem
-
getPriceInAcceleratorsForResearchReset
public double getPriceInAcceleratorsForResearchReset(int count) - Overrides:
getPriceInAcceleratorsForResearchReset
in classItem
- Returns:
- relative value of the item. Score of 1.0 equals to 1 accelerator
-
getRarity
-
isCountable
public boolean isCountable()- Specified by:
isCountable
in classItem
- Returns:
- true, если ItemStack.count учитывается
-
generateIcon
public com.badlogic.gdx.scenes.scene2d.Actor generateIcon(float size, boolean withShadow) - Specified by:
generateIcon
in classItem
-
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, если следует спросить у игрока перед тем, как он использует предмет (чтоб не было мисклика)
-