RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
LMSSafezone.java
1package com.osroyale.content.lms.safezone;
2
3import com.osroyale.game.world.entity.mob.player.Player;
4import com.osroyale.game.world.position.Boundary;
5
28
29public enum LMSSafezone {
30
31 MOUNTAIN(3430, 3440, 5839, 5849),
32 TRINITY_OUTPOST(3481, 3491, 5870, 5880),
33 DEBTOR_HIDEOUT(3400, 3410, 5794, 5804),
34 MOSER_SETTLEMENT(3470, 3480, 5782, 5792)
35 ;
36
37 public int boundsXSW, boundsXNE, boundsYSW, boundsYNE;
38
39 LMSSafezone(int boundsXSW, int boundsXNE, int boundsYSW, int boundsYNE) {
40 this.boundsXSW = boundsXSW;
41 this.boundsXNE = boundsXNE;
42 this.boundsYSW = boundsYSW;
43 this.boundsYNE = boundsYNE;
44 }
45
46 public boolean inSafeZone(Player player) {
47 return Boundary.isIn(player, new Boundary(this.boundsXSW, this.boundsYSW, this.boundsXNE, this.boundsYNE));
48 }
49}