Package com.prineside.tdi2.items
Class BlueprintItem
java.lang.Object
com.prineside.tdi2.Item
com.prineside.tdi2.items.BlueprintItem
- All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable
-
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 TypeMethodDescriptionvoid
addSellItems
(com.badlogic.gdx.utils.Array<ItemStack> toStacks) boolean
com.badlogic.gdx.scenes.scene2d.Actor
generateIcon
(float size, boolean withShadow) com.badlogic.gdx.utils.IntArray
getData()
com.badlogic.gdx.scenes.scene2d.utils.Drawable
double
getPriceInAcceleratorsForResearchReset
(int count) getTitle()
getType()
boolean
boolean
boolean
void
toJson
(com.badlogic.gdx.utils.Json json) Methods inherited from class com.prineside.tdi2.Item
addSellItems, affectedByLuckyWheelMultiplier, canBeUnpacked, cpy, fillItemCreationForm, fillWithInfo, fromJson, getData, getShadowShift, getSortingScore, openPack, read, write
-
Method Details
-
isAffectedByDoubleGain
public boolean isAffectedByDoubleGain()- Overrides:
isAffectedByDoubleGain
in classItem
-
getData
public com.badlogic.gdx.utils.IntArray getData() -
canBeSold
public boolean canBeSold() -
from
-
addSellItems
- Overrides:
addSellItems
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
-
getTitle
-
getDescription
- Specified by:
getDescription
in classItem
-
getBlueprintType
-
getRarity
-
isCountable
public boolean isCountable()- Specified by:
isCountable
in classItem
- Returns:
- true, если ItemStack.count учитывается
-
toJson
public void toJson(com.badlogic.gdx.utils.Json json) -
getType
-
getCategory
- Specified by:
getCategory
in classItem
-
getSubcategory
- Specified by:
getSubcategory
in classItem
-
getAnalyticName
- Overrides:
getAnalyticName
in classItem
-
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
-
sameAs
-