RuneHive-Game
Loading...
Searching...
No Matches
BrotherData.java
Go to the documentation of this file.
1package com.runehive.content.activity.impl.barrows;
2
3import com.runehive.game.world.entity.mob.npc.Npc;
4import com.runehive.game.world.position.Position;
5
6public enum BrotherData {
7 AHRIM(1672, new Position(3562, 3285), new Position(3568, 3291), new Position(3565, 3288), new Position(3557, 9703, 3)),
8 GUTHAN(1674, new Position(3575, 3279), new Position(3580, 3286), new Position(3577, 3282), new Position(3534, 9704, 3)),
9 VERAC(1677, new Position(3554, 3293), new Position(3560, 3301), new Position(3557, 3297), new Position(3578, 9706, 3)),
10 KARIL(1675, new Position(3563, 3273), new Position(3568, 3278), new Position(3566, 3275), new Position(3546, 9684, 3)),
11 DHAROK(1673, new Position(3573, 3295), new Position(3578, 3300), new Position(3575, 3298), new Position(3556, 9718, 3)),
12 TORAG(1676, new Position(3551, 3279), new Position(3556, 3285), new Position(3554, 3282), new Position(3568, 9683, 3));
13
14 /** The npc id of the barrows brother. */
15 private int npcId;
16
17 /** The Position that has to be dug to get into the crypt. */
19
20 /** The Position that has to be dug to get into the crypt. */
22
23 /** The position of the hill. */
25
26 /** The position of the crypt. */
28
30 this.npcId = npcId;
31 this.southWest = southWest;
32 this.northEast = northEast;
33 this.hillPosition = hillPosition;
34 this.cryptPosition = cryptPosition;
35 }
36
37 /**
38 * Gets the npc id of the barrows brother.
39 *
40 * @return the npc id of the barrows brother.
41 */
42 public int getNpcId() {
43 return npcId;
44 }
45
46 /**
47 * Gets the Position that has to be dug to get into the crypt.
48 *
49 * @return the Position that has to be dug to get into the crypt.
50 */
52 return southWest;
53 }
54
55 /**
56 * Gets the Position that has to be dug to get into the crypt.
57 *
58 * @return the Position that has to be dug to get into the crypt.
59 */
61 return northEast;
62 }
63
64 /**
65 * Gets the position of the hill.
66 *
67 * @return the position of the hill.
68 */
70 return hillPosition;
71 }
72
73 /**
74 * Gets the position of the crypt.
75 *
76 * @return the position of the crypt.
77 */
79 return cryptPosition;
80 }
81
82 public static boolean isBarrowsBrother(Npc mob) {
83 for (BrotherData brother : values()) {
84 if (brother.getNpcId() == mob.id) {
85 return true;
86 }
87 }
88 return false;
89 }
90
91 public static BrotherData getBarrowsBrother(Npc mob) {
92 for (BrotherData brother : values()) {
93 if (brother.getNpcId() == mob.id) {
94 return brother;
95 }
96 }
97 return null;
98 }
99}
Represents a non-player character in the in-game world.
Definition Npc.java:29
Represents a single tile on the game world.
Definition Position.java:14
int getNpcId()
Gets the npc id of the barrows brother.
int npcId
The npc id of the barrows brother.
Position southWest
The Position that has to be dug to get into the crypt.
Position cryptPosition
The position of the crypt.
Position getCryptPosition()
Gets the position of the crypt.
Position northEast
The Position that has to be dug to get into the crypt.
BrotherData(int npcId, Position southWest, Position northEast, Position hillPosition, Position cryptPosition)
Position getNorthEast()
Gets the Position that has to be dug to get into the crypt.
Position getHillPosition()
Gets the position of the hill.
Position getSouthWest()
Gets the Position that has to be dug to get into the crypt.