RuneHive-Game
Loading...
Searching...
No Matches
SkillData.java
Go to the documentation of this file.
1package com.runehive.game.world.entity.skill;
2
3import com.runehive.util.Utility;
4
5/**
6 * The enumerated type whose elements represent data for the skills.
7 *
8 * @author lare96 <http://github.com/lare96>
9 */
10public enum SkillData {
11 ATTACK(Skill.ATTACK, 6248, 6249, 6247, true),//correct
12 DEFENCE(Skill.DEFENCE, 6254, 6255, 6253, true),//correct
13 STRENGTH(Skill.STRENGTH, 6207, 6208, 6206, true),//correct
14 HITPOINTS(Skill.HITPOINTS, 6217, 6218, 6216, true),//correct
15 RANGED(Skill.RANGED, 5453, 6114, 4443, true),//correct
16 PRAYER(Skill.PRAYER, 6243, 6244, 6242, true),//correct
17 MAGIC(Skill.MAGIC, 6212, 6213, 6211, true),//correct
18 COOKING(Skill.COOKING, 6227, 6228, 6226, false),//correct
19 WOODCUTTING(Skill.WOODCUTTING, 4273, 4274, 4272, false),//correct
20 FLETCHING(Skill.FLETCHING, 6232, 6233, 6231, false),//correct
21 FISHING(Skill.FISHING, 6259, 6260, 6258, false),//correct
22 FIREMAKING(Skill.FIREMAKING, 4283, 4284, 4282, false),//correct
23 CRAFTING(Skill.CRAFTING, 6264, 6265, 6263, false),//correct
24 SMITHING(Skill.SMITHING, 6222, 6223, 6221, false),//correct
25 MINING(Skill.MINING, 4417, 4438, 4416, false),//correct
26 HERBLORE(Skill.HERBLORE, 6238, 6239, 6237, false),//correct
27 AGILITY(Skill.AGILITY, 4278, 4279, 4277, false),//correct
28 THIEVING(Skill.THIEVING, 4263, 4264, 4261, false),//correct
29 SLAYER(Skill.SLAYER, 12123, 12124, 12122, false),//correct
30 FARMING(Skill.FARMING, 313, 312, 310, false),//correct
31 RUNECRAFTING(Skill.RUNECRAFTING, 4268, 4269, 4267, false),//correct
32 CONSTRUCTION(Skill.CONSTRUCTION, 4268, 4269, 4267, false),//missing
33 HUNTER(Skill.HUNTER, 313, 312, 310, false);//correct
34
35 /** The identification for this skill in the skills array. */
36 private final int id;
37
38 /** The first line that level up text will be printed on. */
39 private final int firstLine;
40
41 /** The second line that level up text will be printed on. */
42 private final int secondLine;
43
44 /** The chatbox itemcontainer displayed on level up. */
45 private final int chatbox;
46
47 /** The state of the skill being related to combat. */
48 private final boolean combatSkill;
49
50 /**
51 * Creates a new {@code SkillData}.
52 *
53 * @param id
54 * the identification for this skill in the skills array.
55 * @param firstLine
56 * the first line that level up text will be printed on.
57 * @param secondLine
58 * the second line that level up text will be printed on.
59 * @param chatbox
60 * the chatbox itemcontainer displayed on level up.
61 * @param combatSkill
62 * the state of the skill being related to combat.
63 */
64 SkillData(int id, int firstLine, int secondLine, int chatbox, boolean combatSkill) {
65 this.id = id;
66 this.firstLine = firstLine;
67 this.secondLine = secondLine;
68 this.chatbox = chatbox;
69 this.combatSkill = combatSkill;
70 }
71
72 /**
73 * Gets the identification for this skill in the skills array.
74 *
75 * @return the identification for this skill.
76 */
77 public final int getId() {
78 return id;
79 }
80
81 /**
82 * Gets the first line that level up text will be printed on.
83 *
84 * @return the first line.
85 */
86 public final int getFirstLine() {
87 return firstLine;
88 }
89
90 /**
91 * Gets the second line that level up text will be printed on.
92 *
93 * @return the second line.
94 */
95 public final int getSecondLine() {
96 return secondLine;
97 }
98
99 /**
100 * Gets the chatbox itemcontainer displayed on level up.
101 *
102 * @return the chatbox itemcontainer.
103 */
104 public final int getChatbox() {
105 return chatbox;
106 }
107
108 /**
109 * Gets if the skill is combat related.
110 *
111 * @return the state.
112 */
113 public final boolean isCombatSkill() {
114 return combatSkill;
115 }
116
117 @Override
118 public final String toString() {
119 return Utility.capitalizeSentence(name().toLowerCase().replace("_", " "));
120 }
121}
Represents a trainable and usable skill.
Definition Skill.java:18
static final int SLAYER
The slayer skill id.
Definition Skill.java:75
static final int WOODCUTTING
The woodcutting skill id.
Definition Skill.java:45
static final int PRAYER
The prayer skill id.
Definition Skill.java:36
static final int RANGED
The ranged skill id.
Definition Skill.java:33
static final int CRAFTING
The crafting skill id.
Definition Skill.java:57
static final int HERBLORE
The herblore skill id.
Definition Skill.java:66
static final int SMITHING
The smithing skill id.
Definition Skill.java:60
static final int FISHING
The fishing skill id.
Definition Skill.java:51
static final int DEFENCE
The defence skill id.
Definition Skill.java:24
static final int CONSTRUCTION
The construction skill id.
Definition Skill.java:84
static final int FLETCHING
The fletching skill id.
Definition Skill.java:48
static final int FIREMAKING
The firemaking skill id.
Definition Skill.java:54
static final int MAGIC
The magic skill id.
Definition Skill.java:39
static final int ATTACK
The attack skill id.
Definition Skill.java:21
static final int FARMING
The farming skill id.
Definition Skill.java:78
static final int AGILITY
The agility skill id.
Definition Skill.java:69
static final int THIEVING
The thieving skill id.
Definition Skill.java:72
static final int HUNTER
The hunter skill id.
Definition Skill.java:87
static final int STRENGTH
The strength skill id.
Definition Skill.java:27
static final int COOKING
The cooking skill id.
Definition Skill.java:42
static final int MINING
The mining skill id.
Definition Skill.java:63
static final int HITPOINTS
The hitpoints skill id.
Definition Skill.java:30
static final int RUNECRAFTING
The runecrafting skill id.
Definition Skill.java:81
Handles miscellaneous methods.
Definition Utility.java:27
static String capitalizeSentence(final String string)
Capitalize each letter after .
Definition Utility.java:99
SkillData(int id, int firstLine, int secondLine, int chatbox, boolean combatSkill)
Creates a new SkillData.
final int getSecondLine()
Gets the second line that level up text will be printed on.
final int getChatbox()
Gets the chatbox itemcontainer displayed on level up.
final int chatbox
The chatbox itemcontainer displayed on level up.
final int getFirstLine()
Gets the first line that level up text will be printed on.
final int getId()
Gets the identification for this skill in the skills array.
final int id
The identification for this skill in the skills array.
final boolean combatSkill
The state of the skill being related to combat.
final int firstLine
The first line that level up text will be printed on.
final boolean isCombatSkill()
Gets if the skill is combat related.
final int secondLine
The second line that level up text will be printed on.