Package com.prineside.tdi2
Class Research
java.lang.Object
com.prineside.tdi2.Research
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
static class
static final class
-
Field Summary
Modifier and TypeFieldDescriptionboolean
final ResearchCategory
float
boolean
float
int
final Research.ResearchLevel[]
final Array<Research.ResearchLink>
final Array<Research.ResearchLink>
int
int
static final int
static final int
static final int
static final int
static final int
static final int
boolean
final ResearchType
boolean
int
int
-
Constructor Summary
ConstructorDescriptionResearch
(ResearchType type, ResearchCategory category, Research.ResearchLevel[] levels, int maxEndlessLevel) -
Method Summary
Modifier and TypeMethodDescriptionstatic Research
fromJson
(com.fasterxml.jackson.core.JsonParser parser) getCumulativePrice
(int fromLevel, int toLevel, boolean considerTokens) getEffects
(int level) Sums up all effects of this research considering the installed level.int
int
Including endlessint
int
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)getTitle()
boolean
boolean
All regular levels unlocked OR this shit is endless onlyboolean
int
void
setInstalledLevel
(int level)
-
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 -
x
public int x -
y
public int y -
distanceToCenter
public float distanceToCenter -
cantBeIgnoredOnUserMaps
public boolean cantBeIgnoredOnUserMaps -
small
public boolean small -
priceInStars
public int priceInStars -
unlocksTower
public boolean unlocksTower
-
-
Constructor Details
-
Research
public Research(ResearchType type, ResearchCategory category, Research.ResearchLevel[] levels, int maxEndlessLevel)
-
-
Method Details
-
fromJson
- Throws:
IOException
-
getMaxLevel
public int getMaxLevel()Including endless -
getMaxRegularLevel
public int getMaxRegularLevel() -
getInstalledLevel
public int getInstalledLevel() -
setInstalledLevel
public void setInstalledLevel(int level) -
getShortName
-
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
- Returns:
- cached static array
-
getEffects
Sums up all effects of this research considering the installed level. -
isMaxNormalLevel
public boolean isMaxNormalLevel()All regular levels unlocked OR this shit is endless only -
isMaxEndlessLevel
public boolean isMaxEndlessLevel() -
getRelatedToTowerType
- Returns:
- tower type affected by this research or null if it does not affect some specific tower type
-
isUnlocksTower
public boolean isUnlocksTower()
-