RuneHive-Game
Loading...
Searching...
No Matches
CombatConstants.java
Go to the documentation of this file.
1package com.runehive.game.world.entity.combat;
2
3public class CombatConstants {
4 /** The amount of time it takes in seconds for cached damage to timeout. */
5 public static final long DAMAGE_CACHE_TIMEOUT = 60;
6
7 /** The amount of time it takes in seconds for combat to reset. */
8 public static final int COMBAT_TIMER_COOLDOWN = 4_200;
9
10 /** The amount of time it takes in milliseconds it takes to logout. */
11 public static final int COMBAT_LOGOUT_COOLDOWN = 10_000;
12
13 public static final String[] SKILL_REQUIREMENT_CONFIG_FIELD_NAMES = {
14 "req-attack",
15 "req-defence",
16 "req-strength",
17 "req-hitpoints",
18 "req-ranged",
19 "req-prayer",
20 "req-magic",
21 "req-cooking",
22 "req-woodcutting",
23 "req-fletching",
24 "req-fishing",
25 "req-firemaking",
26 "req-crafting",
27 "req-smithing",
28 "req-mining",
29 "req-herblore",
30 "req-agility",
31 "req-thieving",
32 "req-slayer",
33 "req-farming",
34 "req-runecrafting",
35 "req-construction",
36 "req-hunter"
37 };
38
39 public static final String[] BONUS_CONFIG_FIELD_NAMES = {
40 // Accuracy bonuses
41 "attack-stab",
42 "attack-slash",
43 "attack-crush",
44 "attack-magic",
45 "attack-ranged",
46
47 // Defensive bonuses
48 "defence-stab",
49 "defence-slash",
50 "defence-crush",
51 "defence-magic",
52 "defence-ranged",
53
54 // Other bonuses
55 "bonus-strength",
56 "ranged-strength",
57 "magic-damage",
58 "bonus-prayer"
59 };
60
61 public static final String[] SKILL_FIELD_NAMES = {
62 "attack-level",
63 "defence-level",
64 "strength-level",
65 "hitpoints-level",
66 "ranged-level",
67 "prayer-level",
68 "magic-level"
69 };
70
71 public static final int[] EMPTY_REQUIREMENTS = new int[SKILL_REQUIREMENT_CONFIG_FIELD_NAMES.length];
72 public static final int[] EMPTY_BONUSES = new int[BONUS_CONFIG_FIELD_NAMES.length];
73 public static final int[] EMPTY_SKILLS = new int[SKILL_FIELD_NAMES.length];
74
75
76
77 /**
78 * The default constructor.
79 * @throws UnsupportedOperationException if this class is instantiated.
80 */
81 private CombatConstants() {
82 throw new UnsupportedOperationException("This class cannot be instantiated!");
83 }
84}
static final long DAMAGE_CACHE_TIMEOUT
The amount of time it takes in seconds for cached damage to timeout.
static final int COMBAT_LOGOUT_COOLDOWN
The amount of time it takes in milliseconds it takes to logout.
static final int COMBAT_TIMER_COOLDOWN
The amount of time it takes in seconds for combat to reset.