This class holds all the util methods for the clan channel system.
More...
|
| static int | getRankOrdinal (int button) |
| | Gets the ordinal of a member based on the button.
|
| static int[] | getRewardItems (ClanLevel level) |
| | Gets the rewards based on the clan level.
|
| static int | getUnbanOrdinal (int button) |
| | Gets the ordinal of a member based on the button.
|
|
| static final int[] | ADAMANT_ITEMS |
| | Holds all the possible adamant item rewards from the mystery box.
|
| static final int[] | BLACK_ITEMS |
| | Holds all the possible black item rewards from the mystery box.
|
| static final int[] | BRONZE_ITEMS |
| | Holds all the possible bronze item rewards from the mystery box.
|
| static final int[] | DRAGON_ITEMS |
| | Holds all the possible dragon item rewards from the mystery box.
|
| static final int[] | IRON_ITEMS |
| | Holds all the possible iron item rewards from the mystery box.
|
| static final int[] | MITHRIL_ITEMS |
| | Holds all the possible mithril item rewards from the mystery box.
|
| static final int[] | RUNE_ITEMS |
| | Holds all the possible rune item rewards from the mystery box.
|
| static final int[] | STEEL_ITEMS |
| | Holds all the possible steel item rewards from the mystery box.
|
This class holds all the util methods for the clan channel system.
- Author
- Daniel
Definition at line 10 of file ClanUtility.java.
◆ getRankOrdinal()
| int com.runehive.content.clanchannel.ClanUtility.getRankOrdinal |
( |
int | button | ) |
|
|
static |
◆ getRewardItems()
| int[] com.runehive.content.clanchannel.ClanUtility.getRewardItems |
( |
ClanLevel | level | ) |
|
|
static |
Gets the rewards based on the clan level.
Definition at line 27 of file ClanUtility.java.
27 {
28 int[] items = new int[30];
29 switch (level) {
30 case BRONZE:
31 items = BRONZE_ITEMS;
32 break;
33 case IRON:
34 items = IRON_ITEMS;
35 break;
36 case STEEL:
37 items = STEEL_ITEMS;
38 break;
39 case BLACK:
40 items = BLACK_ITEMS;
41 break;
42 case MITHRIL:
43 items = MITHRIL_ITEMS;
44 break;
45 case ADAMANT:
46 items = ADAMANT_ITEMS;
47 break;
48 case RUNE:
49 items = RUNE_ITEMS;
50 break;
51 case DRAGON:
52 items = DRAGON_ITEMS;
53 break;
54 case BARROW:
55 break;
56 case GILDED:
57 break;
58 case GODLY:
59 break;
60 case THIRD_AGE:
61 break;
62 case RARE:
63 break;
64 }
65 return items;
66 }
References ADAMANT_ITEMS, BLACK_ITEMS, BRONZE_ITEMS, DRAGON_ITEMS, IRON_ITEMS, MITHRIL_ITEMS, RUNE_ITEMS, and STEEL_ITEMS.
Referenced by com.runehive.content.itemaction.impl.ClanShowcaseBox.inventory().
◆ getUnbanOrdinal()
| int com.runehive.content.clanchannel.ClanUtility.getUnbanOrdinal |
( |
int | button | ) |
|
|
static |
Gets the ordinal of a member based on the button.
Definition at line 20 of file ClanUtility.java.
20 {
21 int base_button = -14225;
22 int modified_button = (base_button - button);
23 return Math.abs(modified_button);
24 }
◆ ADAMANT_ITEMS
| final int [] com.runehive.content.clanchannel.ClanUtility.ADAMANT_ITEMS |
|
staticprivate |
Holds all the possible adamant item rewards from the mystery box.
Definition at line 260 of file ClanUtility.java.
260 {
261 1161,
262 1123,
263 1073,
264 1199,
265 1145,
266 1111,
267 1091,
268 1183,
269 1211,
270 1271,
271 1287,
272 1301,
273 1317,
274 1331,
275 1345,
276 1357,
277 1371,
278 1430,
279 2361,
280 3100,
281 4129,
282 2361,
283 8849,
284 7459,
285 2599,
286 2601,
287 2603,
288 2605,
289 2607,
290 2609,
291 2611,
292 2613,
293 3474,
294 3475,
295 };
Referenced by getRewardItems().
◆ BLACK_ITEMS
| final int [] com.runehive.content.clanchannel.ClanUtility.BLACK_ITEMS |
|
staticprivate |
Holds all the possible black item rewards from the mystery box.
Definition at line 187 of file ClanUtility.java.
187 {
188 1165,
189 1125,
190 1077,
191 1195,
192 1151,
193 1107,
194 1179,
195 1089,
196 1217,
197 8847,
198 1283,
199 1297,
200 1313,
201 1327,
202 1341,
203 1361,
204 1367,
205 1426,
206 4125,
207 7457,
208 2583,
209 2585,
210 2587,
211 2589,
212 2591,
213 2593,
214 2595,
215 2597,
216 3472,
217 3473,
218 3098,
219 };
Referenced by getRewardItems().
◆ BRONZE_ITEMS
| final int [] com.runehive.content.clanchannel.ClanUtility.BRONZE_ITEMS |
|
staticprivate |
Holds all the possible bronze item rewards from the mystery box.
Definition at line 69 of file ClanUtility.java.
69 {
70 1155,
71 1117,
72 1075,
73 1189,
74 1139,
75 1103,
76 1087,
77 1173,
78 1321,
79 1307,
80 1291,
81 1277,
82 1265,
83 1351,
84 1375,
85 1337,
86 1205,
87 1422,
88 3095,
89 3190,
90 4119,
91 7454,
92 9174,
93 8844,
94 12363,
95 2349,
96 12211,
97 12205,
98 12207,
99 12213,
100 12209,
101 12221,
102 12215,
103 12217,
104 12223,
105 12219,
106 };
Referenced by getRewardItems().
◆ DRAGON_ITEMS
| final int [] com.runehive.content.clanchannel.ClanUtility.DRAGON_ITEMS |
|
staticprivate |
Holds all the possible dragon item rewards from the mystery box.
Definition at line 335 of file ClanUtility.java.
335 {
336 11335,
337 2513,
338 4087,
339 1187,
340 1149,
341 4585,
342 1215,
343 1249,
344 1305,
345 1377,
346 1434,
347 4587,
348 6739,
349 7158,
350 7461,
351 11840,
352 11920,
353 12954,
354 13576,
355 13652,
356 21009,
357 21012,
358 21028,
359 12414,
360 12415,
361 12416,
362 12417,
363 12418,
364 20000,
365 19722,
366 };
Referenced by getRewardItems().
◆ IRON_ITEMS
| final int [] com.runehive.content.clanchannel.ClanUtility.IRON_ITEMS |
|
staticprivate |
Holds all the possible iron item rewards from the mystery box.
Definition at line 109 of file ClanUtility.java.
109 {
110 1153,
111 1115,
112 1067,
113 1191,
114 1137,
115 1101,
116 1081,
117 1175,
118 1323,
119 1309,
120 1293,
121 1279,
122 1335,
123 1363,
124 1420,
125 1203,
126 1267,
127 1349,
128 4121,
129 9177,
130 8845,
131 2351,
132 12225,
133 12227,
134 12229,
135 12231,
136 12233,
137 12235,
138 12237,
139 12239,
140 12241,
141 12243,
142 12365,
143 7455,
144 3096,
145 };
Referenced by getRewardItems().
◆ MITHRIL_ITEMS
| final int [] com.runehive.content.clanchannel.ClanUtility.MITHRIL_ITEMS |
|
staticprivate |
Holds all the possible mithril item rewards from the mystery box.
Definition at line 222 of file ClanUtility.java.
222 {
223 1159,
224 1121,
225 1071,
226 1197,
227 1143,
228 1109,
229 1085,
230 1181,
231 1209,
232 1273,
233 1285,
234 1299,
235 1315,
236 1329,
237 1343,
238 1355,
239 1369,
240 1428,
241 2359,
242 3099,
243 8848,
244 4127,
245 7458,
246 12369,
247 12277,
248 12279,
249 12281,
250 12283,
251 12285,
252 12287,
253 12289,
254 12291,
255 12293,
256 12295,
257 };
Referenced by getRewardItems().
◆ RUNE_ITEMS
| final int [] com.runehive.content.clanchannel.ClanUtility.RUNE_ITEMS |
|
staticprivate |
Holds all the possible rune item rewards from the mystery box.
Definition at line 298 of file ClanUtility.java.
298 {
299 1163,
300 1127,
301 1079,
302 1201,
303 1147,
304 1113,
305 1093,
306 1185,
307 1333,
308 1319,
309 1303,
310 1289,
311 1275,
312 1347,
313 1213,
314 1359,
315 1373,
316 1432,
317 3101,
318 4131,
319 7460,
320 8850,
321 2363,
322 2615,
323 2617,
324 2619,
325 2621,
326 2623,
327 2625,
328 2627,
329 2629,
330 3476,
331 3477,
332 };
Referenced by getRewardItems().
◆ STEEL_ITEMS
| final int [] com.runehive.content.clanchannel.ClanUtility.STEEL_ITEMS |
|
staticprivate |
Holds all the possible steel item rewards from the mystery box.
Definition at line 148 of file ClanUtility.java.
148 {
149 1157,
150 1119,
151 1069,
152 1193,
153 1141,
154 1105,
155 1083,
156 1177,
157 1207,
158 1325,
159 1311,
160 1295,
161 1281,
162 1339,
163 1353,
164 1365,
165 1424,
166 2353,
167 1269,
168 3097,
169 4123,
170 7456,
171 8846,
172 9179,
173 20169,
174 20172,
175 20175,
176 20178,
177 20181,
178 20184,
179 20187,
180 20190,
181 20193,
182 20196,
183 12367,
184 };
Referenced by getRewardItems().
The documentation for this class was generated from the following file: