RuneHive-Game
Loading...
Searching...
No Matches
com.runehive.content.tittle.Title Enum Reference

Holds all the title data that can be redeemed using the title interface. More...

Inheritance diagram for com.runehive.content.tittle.Title:
Collaboration diagram for com.runehive.content.tittle.Title:

Public Member Functions

String[] getRequirement ()
PlayerTitle getTitle ()
 Title (PlayerTitle name, String... requirement)
Public Member Functions inherited from com.runehive.util.generic.BooleanInterface< T >
boolean activated (final T player)

Static Public Member Functions

static Optional< TitleforOrdinal (int ordinal)

Public Attributes

 BLOODHOUND
 CADET
 COMMANDER
 GLADIATOR
 GODLY
 LEGEND
 MASTER
 THE_GREAT
 WAR_CHIEF

Private Attributes

final String[] requirement
final PlayerTitle title

Detailed Description

Holds all the title data that can be redeemed using the title interface.

Author
Daniel

Definition at line 15 of file Title.java.

Constructor & Destructor Documentation

◆ Title()

com.runehive.content.tittle.Title.Title ( PlayerTitle name,
String... requirement )

Definition at line 113 of file Title.java.

113 {
114 this.title = name;
115 this.requirement = requirement;
116 }

References requirement.

Referenced by forOrdinal().

Here is the caller graph for this function:

Member Function Documentation

◆ forOrdinal()

Optional< Title > com.runehive.content.tittle.Title.forOrdinal ( int ordinal)
static

Definition at line 126 of file Title.java.

126 {
127 for (Title title : values()) {
128 if (title.ordinal() == ordinal) {
129 return Optional.of(title);
130 }
131 }
132 return Optional.empty();
133 }

References Title(), and title.

Referenced by com.runehive.content.tittle.TitleManager.click(), and com.runehive.content.tittle.TitleManager.redeem().

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

◆ getRequirement()

String[] com.runehive.content.tittle.Title.getRequirement ( )

Definition at line 122 of file Title.java.

122 {
123 return requirement;
124 }

References requirement.

Referenced by com.runehive.content.tittle.TitleManager.refresh().

Here is the caller graph for this function:

◆ getTitle()

PlayerTitle com.runehive.content.tittle.Title.getTitle ( )

Definition at line 118 of file Title.java.

118 {
119 return title;
120 }

References title.

Referenced by com.runehive.content.tittle.TitleManager.redeem(), and com.runehive.content.tittle.TitleManager.refresh().

Here is the caller graph for this function:

Member Data Documentation

◆ BLOODHOUND

com.runehive.content.tittle.Title.BLOODHOUND
Initial value:
=(PlayerTitle.create("Bloodhound", 0xB32424), "Complete the achievement:", "Get a 25 killstreak") {
@Override
public boolean activated(Player player) {
}
}
static boolean completed(Player player, AchievementList achievement)
Checks if the reward is completed.
static PlayerTitle create(String title, int color)
Creates a player title.
This class represents a character controlled by a player.
Definition Player.java:125

Definition at line 41 of file Title.java.

41 :", "Get a 25 killstreak") {
42 @Override
43 public boolean activated(Player player) {
44 return AchievementHandler.completed(player, AchievementList.GET_A_25_KILLSTREAK);
45 }
46 },

◆ CADET

com.runehive.content.tittle.Title.CADET
Initial value:
=(PlayerTitle.create("Cadet"), "Complete the achievement:", "Kill 10 players") {
@Override
public boolean activated(Player player) {
}
}

Definition at line 17 of file Title.java.

17 :", "Kill 10 players") {
18 @Override
19 public boolean activated(Player player) {
20 return AchievementHandler.completed(player, AchievementList.KILL_10_PLAYERS);
21 }
22 },

◆ COMMANDER

com.runehive.content.tittle.Title.COMMANDER
Initial value:
=(PlayerTitle.create("Commander"), "Complete the achievement:", "Kill 500 players") {
@Override
public boolean activated(Player player) {
}
}

Definition at line 29 of file Title.java.

29 :", "Kill 500 players") {
30 @Override
31 public boolean activated(Player player) {
32 return AchievementHandler.completed(player, AchievementList.KILL_500_PLAYERS);
33 }
34 },

◆ GLADIATOR

com.runehive.content.tittle.Title.GLADIATOR
Initial value:
=(PlayerTitle.create("Gladiator"), "Complete the achievement:", "Kill 150 players") {
@Override
public boolean activated(Player player) {
}
}

Definition at line 23 of file Title.java.

23 :", "Kill 150 players") {
24 @Override
25 public boolean activated(Player player) {
26 return AchievementHandler.completed(player, AchievementList.KILL_150_PLAYERS);
27 }
28 },

◆ GODLY

com.runehive.content.tittle.Title.GODLY
Initial value:
=(PlayerTitle.create("Godly", 0xC7B23E), "Achieve 200M experience in all", "available skills") {
@Override
public boolean activated(Player player) {
}
}

Definition at line 59 of file Title.java.

59 {
60 @Override
61 public boolean activated(Player player) {
62 return AchievementHandler.completed(player, AchievementList.MAX_200M_EXPERIENCE);
63 }
64 },

◆ LEGEND

com.runehive.content.tittle.Title.LEGEND
Initial value:
=(PlayerTitle.create("Legend", 0xC25F0E), "Complete the achievement:", "Vote 1,000 times") {
@Override
public boolean activated(Player player) {
}
}

Definition at line 47 of file Title.java.

47 :", "Vote 1,000 times") {
48 @Override
49 public boolean activated(Player player) {
50 return AchievementHandler.completed(player, AchievementList.CLAIM_1000_VOTES);
51 }
52 },

◆ MASTER

com.runehive.content.tittle.Title.MASTER
Initial value:
=(PlayerTitle.create("Master"), "Achieve level 99 in all skills", "") {
@Override
public boolean activated(Player player) {
return player.skills.isMaxed();
}
}

Definition at line 53 of file Title.java.

53 {
54 @Override
55 public boolean activated(Player player) {
56 return player.skills.isMaxed();
57 }
58 },

◆ requirement

final String [] com.runehive.content.tittle.Title.requirement
private

Definition at line 111 of file Title.java.

Referenced by getRequirement(), and Title().

◆ THE_GREAT

com.runehive.content.tittle.Title.THE_GREAT
Initial value:
=(PlayerTitle.create("The Great", 0xC7B23E), "Complete all available achievements", "") {
@Override
public boolean activated(Player player) {
}
}
static boolean completedAll(Player player)
Checks if a player has completed all the available achievements.

Definition at line 65 of file Title.java.

65 {
66 @Override
67 public boolean activated(Player player) {
68 return AchievementHandler.completedAll(player);
69 }
70 },

◆ title

final PlayerTitle com.runehive.content.tittle.Title.title
private

Definition at line 110 of file Title.java.

Referenced by forOrdinal(), and getTitle().

◆ WAR_CHIEF

com.runehive.content.tittle.Title.WAR_CHIEF
Initial value:
=(PlayerTitle.create("War-chief", 0xD053DB), "Complete the achievement:", "Kill 1,000 players") {
@Override
public boolean activated(Player player) {
}
}

Definition at line 35 of file Title.java.

35 :", "Kill 1,000 players") {
36 @Override
37 public boolean activated(Player player) {
38 return AchievementHandler.completed(player, AchievementList.KILL_1000_PLAYERS);
39 }
40 },

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