RuneHive-Game
Loading...
Searching...
No Matches
LMSSafezone.java
Go to the documentation of this file.
1
package
com.runehive.content.lms.safezone;
2
3
import
com.runehive.game.world.entity.mob.player.Player;
4
import
com.runehive.game.world.position.Boundary;
5
6
public
enum
LMSSafezone
{
7
8
MOUNTAIN
(3430, 3440, 5839, 5849),
9
TRINITY_OUTPOST
(3481, 3491, 5870, 5880),
10
DEBTOR_HIDEOUT
(3400, 3410, 5794, 5804),
11
MOSER_SETTLEMENT
(3470, 3480, 5782, 5792)
12
;
13
14
public
int
boundsXSW
,
boundsXNE
,
boundsYSW
,
boundsYNE
;
15
16
LMSSafezone
(
int
boundsXSW
,
int
boundsXNE
,
int
boundsYSW
,
int
boundsYNE
) {
17
this.boundsXSW =
boundsXSW
;
18
this.boundsXNE =
boundsXNE
;
19
this.boundsYSW =
boundsYSW
;
20
this.boundsYNE =
boundsYNE
;
21
}
22
23
public
boolean
inSafeZone
(
Player
player) {
24
return
Boundary
.
isIn
(player,
new
Boundary
(this.boundsXSW, this.boundsYSW, this.boundsXNE, this.boundsYNE));
25
}
26
}
com.runehive.game.world.entity.mob.player.Player
This class represents a character controlled by a player.
Definition
Player.java:125
com.runehive.game.world.position.Boundary
Created by Daniel on 2017-11-24.
Definition
Boundary.java:12
com.runehive.game.world.position.Boundary.isIn
static boolean isIn(Mob mob, Boundary... boundaries)
Definition
Boundary.java:49
com.runehive.content.lms.safezone.LMSSafezone.inSafeZone
boolean inSafeZone(Player player)
Definition
LMSSafezone.java:23
com.runehive.content.lms.safezone.LMSSafezone.boundsYNE
int boundsYNE
Definition
LMSSafezone.java:14
com.runehive.content.lms.safezone.LMSSafezone.boundsXNE
int boundsXNE
Definition
LMSSafezone.java:14
com.runehive.content.lms.safezone.LMSSafezone.boundsYSW
int boundsYSW
Definition
LMSSafezone.java:14
com.runehive.content.lms.safezone.LMSSafezone.TRINITY_OUTPOST
TRINITY_OUTPOST
Definition
LMSSafezone.java:9
com.runehive.content.lms.safezone.LMSSafezone.MOSER_SETTLEMENT
MOSER_SETTLEMENT
Definition
LMSSafezone.java:11
com.runehive.content.lms.safezone.LMSSafezone.MOUNTAIN
MOUNTAIN
Definition
LMSSafezone.java:8
com.runehive.content.lms.safezone.LMSSafezone.DEBTOR_HIDEOUT
DEBTOR_HIDEOUT
Definition
LMSSafezone.java:10
com.runehive.content.lms.safezone.LMSSafezone.LMSSafezone
LMSSafezone(int boundsXSW, int boundsXNE, int boundsYSW, int boundsYNE)
Definition
LMSSafezone.java:16
com.runehive.content.lms.safezone.LMSSafezone.boundsXSW
int boundsXSW
Definition
LMSSafezone.java:14