RuneHive-Game
Loading...
Searching...
No Matches
com.runehive.content.clanchannel.content.ClanAchievement Enum Reference

Handles the clan achievements. More...

Collaboration diagram for com.runehive.content.clanchannel.content.ClanAchievement:

Public Member Functions

 ClanAchievement (String details, int amount, Difficulty difficulty)
 Constructs a new ClanAchievement.
double getExperience ()
 Gets the reward experience for completing an achivement.
int getPoints ()
 Gets the reward points for completing an achievement.

Static Public Member Functions

static Optional< ClanAchievementforOrdinal (int ordinal)
 Gets the clan achivement based on the ordinal.

Public Attributes

final int amount
 The amount required of the achievement.
 CLAN_MEMBERS_I =("Have 10 members in your clan", 10, Difficulty.EASY)
 CLAN_MEMBERS_II =("Have 50 members in your clan", 50, Difficulty.MEDIUM)
 CLAN_MEMBERS_III =("Have 150 members in your clan", 150, Difficulty.HARD)
final String details
 The details of the achievement.
final Difficulty difficulty
 The difficulty of the achievement.
 PLAYER_KILLER_I =("Kill 25 wilderness players", 25, Difficulty.EASY)
 PLAYER_KILLER_II =("Kill 150 wilderness players", 150, Difficulty.MEDIUM)
 PLAYER_KILLER_III =("Kill 750 wilderness players", 750, Difficulty.HARD)
 TASKS_I =("Complete 10 clan tasks", 10, Difficulty.EASY)
 TASKS_II =("Complete 100 clan tasks", 100, Difficulty.MEDIUM)
 TASKS_III =("Complete 500 clan tasks", 500, Difficulty.HARD)

Detailed Description

Handles the clan achievements.

Author
Daniel.

Definition at line 12 of file ClanAchievement.java.

Constructor & Destructor Documentation

◆ ClanAchievement()

com.runehive.content.clanchannel.content.ClanAchievement.ClanAchievement ( String details,
int amount,
Difficulty difficulty )

Constructs a new ClanAchievement.

Definition at line 39 of file ClanAchievement.java.

39 {
40 this.details = details;
41 this.amount = amount;
42 this.difficulty = difficulty;
43 }

References amount, details, and difficulty.

Referenced by forOrdinal().

Here is the caller graph for this function:

Member Function Documentation

◆ forOrdinal()

Optional< ClanAchievement > com.runehive.content.clanchannel.content.ClanAchievement.forOrdinal ( int ordinal)
static

Gets the clan achivement based on the ordinal.

Definition at line 72 of file ClanAchievement.java.

72 {
73 for (ClanAchievement achievement : values()) {
74 if (achievement.ordinal() == ordinal)
75 return Optional.of(achievement);
76 }
77 return Optional.empty();
78 }

References ClanAchievement().

Referenced by com.runehive.content.clanchannel.content.ClanViewer.viewAchievements().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getExperience()

double com.runehive.content.clanchannel.content.ClanAchievement.getExperience ( )

Gets the reward experience for completing an achivement.

Definition at line 59 of file ClanAchievement.java.

59 {
60 switch (difficulty) {
61 case EASY:
62 return 2500;
63 case MEDIUM:
64 return 5000;
65 case HARD:
66 return 10000;
67 }
68 return 0;
69 }

References difficulty.

◆ getPoints()

int com.runehive.content.clanchannel.content.ClanAchievement.getPoints ( )

Gets the reward points for completing an achievement.

Definition at line 46 of file ClanAchievement.java.

46 {
47 switch (difficulty) {
48 case EASY:
49 return 3;
50 case MEDIUM:
51 return 5;
52 case HARD:
53 return 8;
54 }
55 return 0;
56 }

References difficulty.

Member Data Documentation

◆ amount

final int com.runehive.content.clanchannel.content.ClanAchievement.amount

The amount required of the achievement.

Definition at line 33 of file ClanAchievement.java.

Referenced by ClanAchievement().

◆ CLAN_MEMBERS_I

com.runehive.content.clanchannel.content.ClanAchievement.CLAN_MEMBERS_I =("Have 10 members in your clan", 10, Difficulty.EASY)

◆ CLAN_MEMBERS_II

com.runehive.content.clanchannel.content.ClanAchievement.CLAN_MEMBERS_II =("Have 50 members in your clan", 50, Difficulty.MEDIUM)

◆ CLAN_MEMBERS_III

com.runehive.content.clanchannel.content.ClanAchievement.CLAN_MEMBERS_III =("Have 150 members in your clan", 150, Difficulty.HARD)

◆ details

final String com.runehive.content.clanchannel.content.ClanAchievement.details

The details of the achievement.

Definition at line 30 of file ClanAchievement.java.

Referenced by ClanAchievement().

◆ difficulty

final Difficulty com.runehive.content.clanchannel.content.ClanAchievement.difficulty

The difficulty of the achievement.

Definition at line 36 of file ClanAchievement.java.

Referenced by ClanAchievement(), getExperience(), and getPoints().

◆ PLAYER_KILLER_I

com.runehive.content.clanchannel.content.ClanAchievement.PLAYER_KILLER_I =("Kill 25 wilderness players", 25, Difficulty.EASY)

◆ PLAYER_KILLER_II

com.runehive.content.clanchannel.content.ClanAchievement.PLAYER_KILLER_II =("Kill 150 wilderness players", 150, Difficulty.MEDIUM)

◆ PLAYER_KILLER_III

com.runehive.content.clanchannel.content.ClanAchievement.PLAYER_KILLER_III =("Kill 750 wilderness players", 750, Difficulty.HARD)

◆ TASKS_I

com.runehive.content.clanchannel.content.ClanAchievement.TASKS_I =("Complete 10 clan tasks", 10, Difficulty.EASY)

◆ TASKS_II

com.runehive.content.clanchannel.content.ClanAchievement.TASKS_II =("Complete 100 clan tasks", 100, Difficulty.MEDIUM)

◆ TASKS_III

com.runehive.content.clanchannel.content.ClanAchievement.TASKS_III =("Complete 500 clan tasks", 500, Difficulty.HARD)

The documentation for this enum was generated from the following file: