Enum Class CorporationAchievement
java.lang.Object
java.lang.Enum<CorporationAchievement>
us.teaminceptus.novaconomy.api.corporation.CorporationAchievement
- All Implemented Interfaces:
Serializable,Comparable<CorporationAchievement>,Constable
Represents an achievement that a Corporation can earn.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe achievement for reaching a collective 10K, 50K, 150K, 500K, 1M, and 5M Business and Corporation Views.The achievement for reaching a collective 100K, 450K, 1M, 2.5M, 7.5M, 15M, 40M, 75M, and 125M in total Business Profit.The achievement for reaching 5, 15, 35, and 50 corporation children.The achievement for reaching a collective 5K, 15K, 100K, 350K, 750K, 1.5M, 5M, 10M, 25M, 50M, and 100M Business sales.The achievement for reaching a collective 5K, 20K, 75K, 130K, 285K, and 610K in total Corporation Resources.The achievement for reaching an average rating of 4 stars or more on all of this Corporation's Children when they have at least 5 members. -
Method Summary
Modifier and TypeMethodDescription@NotNull StringFetches teh localized description for this Corporation Achievement.@NotNull StringFetches the display name for this Corporation Achievement.doubleFetches the base experience reward for achieving this Corporation Achievement.@NotNull MaterialgetIcon()Fetches this CorporationAchievement's Material Icon.intFetches the maximum level of this Corporation Achievement.doublegetProgress(@NotNull Corporation c) Fetches the current progress percentage of the Corporation towards the next level of this achievement.static CorporationAchievementReturns the enum constant of this class with the specified name.static CorporationAchievement[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MONOPOLY
The achievement for reaching 5, 15, 35, and 50 corporation children. -
ADVERTISER
The achievement for reaching a collective 10K, 50K, 150K, 500K, 1M, and 5M Business and Corporation Views. -
SELLER
The achievement for reaching a collective 5K, 15K, 100K, 350K, 750K, 1.5M, 5M, 10M, 25M, 50M, and 100M Business sales. -
BUSINESSMAN
The achievement for reaching a collective 100K, 450K, 1M, 2.5M, 7.5M, 15M, 40M, 75M, and 125M in total Business Profit. -
STOCKPILER
The achievement for reaching a collective 5K, 20K, 75K, 130K, 285K, and 610K in total Corporation Resources. -
SUPER_QUALITY
The achievement for reaching an average rating of 4 stars or more on all of this Corporation's Children when they have at least 5 members.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getIcon
Fetches this CorporationAchievement's Material Icon.- Returns:
- Material Icon
-
getMaxLevel
public int getMaxLevel()Fetches the maximum level of this Corporation Achievement.- Returns:
- Maximum Level
-
getDisplayName
Fetches the display name for this Corporation Achievement.- Returns:
- Localized Display Name
-
getDescription
Fetches teh localized description for this Corporation Achievement.- Returns:
- Localized Description
-
getExperienceReward
public double getExperienceReward()Fetches the base experience reward for achieving this Corporation Achievement.
This will be multiplied by the level unlocked, when applicable.
- Returns:
- Experience Reward
-
getProgress
Fetches the current progress percentage of the Corporation towards the next level of this achievement.- Parameters:
c- Corporation to check- Returns:
- Percentage Progress towards Achievement out of 100%
- Throws:
IllegalArgumentException- if Corporation is null
-