public enum RelationLevel extends java.lang.Enum<RelationLevel>
Enum Constant and Description |
---|
ACQUAINTANCE
First level, small discounts / more quests.
|
ALLY
Second level, bigger discounts / more quests.
|
BEST_FRIEND
Fourth level, giant discounts / more quests.
|
FRIEND
Third level, great discounts / more quests.
|
IDOLIZED
Highest level, highest discounts / more quests.
|
STRANGER
Starting level, basic interactions.
|
Modifier and Type | Field and Description |
---|---|
private double |
discountMultiplier
The multiplier for shop prices.
|
private int |
neededExp
The experience needed to reach this level.
|
private java.lang.String |
relationName
The name of the relation level.
|
private int |
relationTier
The tier of the relation level.
|
Modifier and Type | Method and Description |
---|---|
double |
getDiscountMultiplier() |
int |
getNeededExp() |
RelationLevel |
getNextLevel() |
static RelationLevel |
getRelationLevel(int relationExp)
Determines the relationship level, based on the amount of experience.
|
java.lang.String |
getRelationName() |
int |
getRelationTier() |
double |
getRewardMultiplier() |
static RelationLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RelationLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RelationLevel STRANGER
public static final RelationLevel ACQUAINTANCE
public static final RelationLevel ALLY
public static final RelationLevel FRIEND
public static final RelationLevel BEST_FRIEND
public static final RelationLevel IDOLIZED
private final java.lang.String relationName
private final int relationTier
private final int neededExp
private final double discountMultiplier
public static RelationLevel[] values()
for (RelationLevel c : RelationLevel.values()) System.out.println(c);
public static RelationLevel valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static RelationLevel getRelationLevel(int relationExp)
relationExp
- The experience to determine the level for.public java.lang.String getRelationName()
public int getRelationTier()
public int getNeededExp()
public RelationLevel getNextLevel()
public double getDiscountMultiplier()
public double getRewardMultiplier()