Object Card.Companion
-
- All Implemented Interfaces:
public class Card.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static IntegerMAX_LEVELpublic final static Card.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final static IntegertoLevel(Double experience, Rarity rarity)Converts a BattleCard's Experience to the corresponding level. final static DoubletoExperience(Integer level, Rarity rarity)Converts a BattleCard's Level to the minimum experience required to reach that level. -
-
Method Detail
-
toLevel
final static Integer toLevel(Double experience, Rarity rarity)
Converts a BattleCard's Experience to the corresponding level.
- Parameters:
experience- Experience to convertrarity- Rarity of the BattleCard to use for Rarity.experienceModifier
-
toExperience
final static Double toExperience(Integer level, Rarity rarity)
Converts a BattleCard's Level to the minimum experience required to reach that level.
- Parameters:
level- Level to convertrarity- Rarity of the BattleCard to use for Rarity.experienceModifier
-
-
-
-