Enum BattleCardClass
-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable
public enum BattleCardClass extends Enum<BattleCardClass>
Represents the Class for a Card.
-
-
Field Summary
Fields Modifier and Type Field Description private final Map<BattleCardClass, Double>weaknessesprivate final Map<BattleCardClass, Double>strengthsprivate final ChatColorcolorprivate final Stringnameprivate final Integerordinal
-
Method Summary
Modifier and Type Method Description final Doublemodifier(BattleCardClass other)Gets the modifier for this class against another class. StringtoString()final BattleCardClassvalueOf(String value)Returns the enum constant of this type with the specified name. final Array<BattleCardClass>values()Returns an array containing the constants of this enum type, in the order they're declared. final Map<BattleCardClass, Double>getWeaknesses()final Map<BattleCardClass, Double>getStrengths()final ChatColorgetColor()The color prefix for the class. -
-
Method Detail
-
modifier
final Double modifier(BattleCardClass other)
Gets the modifier for this class against another class.
- Parameters:
other- The class to get the modifier for
-
valueOf
final BattleCardClass 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<BattleCardClass> 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.
-
getWeaknesses
final Map<BattleCardClass, Double> getWeaknesses()
-
getStrengths
final Map<BattleCardClass, Double> getStrengths()
-
getColor
final ChatColor getColor()
The color prefix for the class.
-
-
-
-