RuneHive-Game
Loading...
Searching...
No Matches
LMSSafezone.java
Go to the documentation of this file.
1package com.runehive.content.lms.safezone;
2
3import com.runehive.game.world.entity.mob.player.Player;
4import com.runehive.game.world.position.Boundary;
5
6public 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
15
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}
This class represents a character controlled by a player.
Definition Player.java:125
Created by Daniel on 2017-11-24.
Definition Boundary.java:12
static boolean isIn(Mob mob, Boundary... boundaries)
Definition Boundary.java:49
LMSSafezone(int boundsXSW, int boundsXNE, int boundsYSW, int boundsYNE)