RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
Fog.java
1
package
com.osroyale.content.lms.fog;
2
29
30
public
class
Fog {
31
32
private
int
lowX;
33
34
public
int
getLowX() {
return
lowX; }
35
36
private
int
lowY;
37
38
public
int
getLowY() {
return
lowY; }
39
40
private
int
highX;
41
42
public
int
getHighX() {
return
highX; }
43
44
private
int
highY;
45
46
public
int
getHighY() {
return
highY; }
47
48
public
Fog(
int
lowX,
int
lowY,
int
highX,
int
highY) {
49
this.lowX = lowX;
50
this.lowY = lowY;
51
this.highX = highX;
52
this.highY = highY;
53
}
54
55
public
void
decrease() {
56
lowX += 1;
57
lowY += 1;
58
highX -= 1;
59
highY -= 1;
60
System.out.println(
"fog decrease...."
);
61
}
62
63
public
void
reset() {
64
lowX = -1;
65
lowY = -1;
66
highX = -1;
67
highY = -1;
68
}
69
70
public
boolean
isSafe() {
71
return
lowX == -1 && lowY == -1 && highX == -1 && highY == -1;
72
}
73
}