Package com.prineside.tdi2
Class Research
java.lang.Object
com.prineside.tdi2.Research
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanfinal ResearchCategoryfloatbooleanfloatintintcom.badlogic.gdx.utils.IntArrayfinal Research.ResearchLevel[]final com.badlogic.gdx.utils.Array<Research.ResearchLink>final com.badlogic.gdx.utils.Array<Research.ResearchLink>intfinal com.badlogic.gdx.math.Vector3intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intfinal ResearchTypebooleanintint -
Constructor Summary
ConstructorsConstructorDescriptionResearch(ResearchType type, ResearchCategory category, Research.ResearchLevel[] levels, int maxEndlessLevel) -
Method Summary
Modifier and TypeMethodDescriptioncom.badlogic.gdx.utils.Array<ItemStack>getCumulativePrice(int fromLevel, int toLevel, boolean considerTokens) com.badlogic.gdx.utils.Array<GameValueManager.GameValueEffect>getEffects(int level) Суммирует все эффекты от этого исследования с учетом того, что установлен уровень level.intReset this research for 20 Accelerators + 1 Research token? You will receive all the items spent on this research (warning: inventory is limited to 999M items, any excess items will be lost)com.badlogic.gdx.utils.StringBuildergetTitle()booleanbooleanbooleanint
-
Field Details
-
linksToParents
-
linksToChildren
-
type
-
RESET_RESEARCH_STATE_AVAILABLE
public static final int RESET_RESEARCH_STATE_AVAILABLE- See Also:
-
RESET_RESEARCH_STATE_HAS_CHILD
public static final int RESET_RESEARCH_STATE_HAS_CHILD- See Also:
-
RESET_RESEARCH_STATE_NOT_INSTALLED
public static final int RESET_RESEARCH_STATE_NOT_INSTALLED- See Also:
-
RESET_RESEARCH_STATE_NOT_SUITABLE
public static final int RESET_RESEARCH_STATE_NOT_SUITABLE- See Also:
-
RESET_RESEARCH_STATE_STAR_BRANCH
public static final int RESET_RESEARCH_STATE_STAR_BRANCH- See Also:
-
RESET_RESEARCH_STATE_NOT_ENOUGH_ACCELERATORS
public static final int RESET_RESEARCH_STATE_NOT_ENOUGH_ACCELERATORS- See Also:
-
category
-
levels
-
endlessLevel
-
maxEndlessLevel
public int maxEndlessLevel -
endlessPriceLevel
public int endlessPriceLevel -
endlessOnly
public boolean endlessOnly -
endlessPriceExp
public float endlessPriceExp -
installedLevel
public int installedLevel -
installedLevelsForToken
public com.badlogic.gdx.utils.IntArray installedLevelsForToken -
x
public int x -
y
public int y -
position3d
public final com.badlogic.gdx.math.Vector3 position3d -
distanceToCenter
public float distanceToCenter -
cantBeIgnoredOnUserMaps
public boolean cantBeIgnoredOnUserMaps -
priceInStars
public int priceInStars -
unlocksTower
public boolean unlocksTower
-
-
Constructor Details
-
Research
public Research(ResearchType type, ResearchCategory category, Research.ResearchLevel[] levels, int maxEndlessLevel)
-
-
Method Details
-
getShortName
-
getTitle
public com.badlogic.gdx.utils.StringBuilder getTitle() -
getDescription
-
resetForAcceleratorsState
public int resetForAcceleratorsState() -
getResetPrice
public int getResetPrice()Reset this research for 20 Accelerators + 1 Research token? You will receive all the items spent on this research (warning: inventory is limited to 999M items, any excess items will be lost)- Returns:
- research reset price in accelerators. Can't reset if <= 0
-
getCumulativePrice
public com.badlogic.gdx.utils.Array<ItemStack> getCumulativePrice(int fromLevel, int toLevel, boolean considerTokens) - Returns:
- cached static array
-
getEffects
Суммирует все эффекты от этого исследования с учетом того, что установлен уровень level. Выделяет память. -
isMaxNormalLevel
public boolean isMaxNormalLevel() -
isMaxEndlessLevel
public boolean isMaxEndlessLevel() -
getRelatedToTowerType
- Returns:
- тип башни, на которую действует это улучшение, или null, если не относится к башне
-
isUnlocksTower
public boolean isUnlocksTower()
-