Package com.prineside.tdi2.items
Class ResourceItem
java.lang.Object
com.prineside.tdi2.Item
com.prineside.tdi2.items.ResourceItem
- All Implemented Interfaces:
 com.esotericsoftware.kryo.KryoSerializable
- 
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) booleancpy()com.badlogic.gdx.scenes.scene2d.ActorgenerateIcon(float size, boolean withShadow) com.badlogic.gdx.utils.IntArraygetData()com.badlogic.gdx.scenes.scene2d.utils.DrawabledoublegetPriceInAcceleratorsForResearchReset(int count) getTitle()getType()booleanbooleanbooleanvoidtoJson(com.badlogic.gdx.utils.Json json) Methods inherited from class com.prineside.tdi2.Item
addSellItems, affectedByLuckyWheelMultiplier, canBeUnpacked, fillItemCreationForm, fillWithInfo, fromJson, getData, getShadowShift, getSortingScore, openPack, read, write 
- 
Field Details
- 
resourceType
 
 - 
 - 
Method Details
- 
isAffectedByDoubleGain
public boolean isAffectedByDoubleGain()- Overrides:
 isAffectedByDoubleGainin classItem
 - 
from
 - 
getData
public com.badlogic.gdx.utils.IntArray getData() - 
cpy
 - 
toJson
public void toJson(com.badlogic.gdx.utils.Json json)  - 
getAnalyticName
- Overrides:
 getAnalyticNamein classItem
 - 
canBeSold
public boolean canBeSold() - 
addSellItems
- Overrides:
 addSellItemsin classItem
 - 
getPriceInAcceleratorsForResearchReset
public double getPriceInAcceleratorsForResearchReset(int count) - Overrides:
 getPriceInAcceleratorsForResearchResetin classItem- Returns:
 - relative value of the item. Score of 1.0 equals to 1 accelerator
 
 - 
getType
 - 
getCategory
- Specified by:
 getCategoryin classItem
 - 
getSubcategory
- Specified by:
 getSubcategoryin classItem
 - 
getTitle
 - 
getDescription
- Specified by:
 getDescriptionin classItem
 - 
getRarity
 - 
isCountable
public boolean isCountable()- Specified by:
 isCountablein classItem- Returns:
 - true, если ItemStack.count учитывается
 
 - 
sameAs
 - 
getIconDrawable
public com.badlogic.gdx.scenes.scene2d.utils.Drawable getIconDrawable()- Overrides:
 getIconDrawablein classItem
 - 
generateIcon
public com.badlogic.gdx.scenes.scene2d.Actor generateIcon(float size, boolean withShadow) - Specified by:
 generateIconin classItem
 
 -