Enum CardQuest
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CARD_HUNTERCard Kills Quest
ENTITY_HUNTEREntity & Player Kills Quest
DAMAGERDamage Dealt Quest
TANKDamage Received Quest
REVIVERDeaths Quest
GOLIATHGoliath Quest
TITANTitan Quest
-
Method Summary
Modifier and Type Method Description final IntegergetCurrentLevel(Card card)Fetches the latest quest level completed for a Card. final DoublegetProgressPercentage(Card card, Integer level)Fetches the current percentage progress of this Quest at a specific level, between 0.0 and 1.0 for the completion until the next level. final StringgetLocalizedProgress(Card card, Integer level)Fetches the localized progress of this Quest, formatted for the Card Menu. final DoublegetExperienceReward(Card card, Integer level)Fetches the card experience reward amount for this Quest. final DoublegetTotalExperience(Card card)Fetches the total amount of experience this quest can offer. final CardQuestvalueOf(String value)Returns the enum constant of this type with the specified name. final Array<CardQuest>values()Returns an array containing the constants of this enum type, in the order they're declared. final MaterialgetIcon()The icon for the Card Quest. final IntegergetMaxLevel()The maximum level for this Card Achievement. -
-
Method Detail
-
getCurrentLevel
final Integer getCurrentLevel(Card card)
Fetches the latest quest level completed for a Card.
- Parameters:
card- Card to Check
-
getProgressPercentage
final Double getProgressPercentage(Card card, Integer level)
Fetches the current percentage progress of this Quest at a specific level, between 0.0 and 1.0 for the completion until the next level.
- Parameters:
card- Card to Checklevel- Current Quest Level of Card, defaults to getCurrentLevel+ 1
-
getLocalizedProgress
final String getLocalizedProgress(Card card, Integer level)
Fetches the localized progress of this Quest, formatted for the Card Menu.
- Parameters:
card- Card to Uselevel- Level to Use, defaults to getCurrentLevel+ 1
-
getExperienceReward
final Double getExperienceReward(Card card, Integer level)
Fetches the card experience reward amount for this Quest. Experience Rewards can be Card-Specific and can factor in things like rarity.
- Parameters:
card- Card to Uselevel- Level to Use, Defaults to Next Unlocked Level
-
getTotalExperience
final Double getTotalExperience(Card card)
Fetches the total amount of experience this quest can offer.
- Parameters:
card- Card to Use
-
valueOf
final CardQuest valueOf(String value)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
-
values
final Array<CardQuest> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
getIcon
final Material getIcon()
The icon for the Card Quest.
-
getMaxLevel
final Integer getMaxLevel()
The maximum level for this Card Achievement.
-
-
-
-