RuneHive-Game
Loading...
Searching...
No Matches
Fog.java
Go to the documentation of this file.
1package com.runehive.content.lms.fog;
2
3public class Fog {
4
5 private int lowX;
6
7 public int getLowX() { return lowX; }
8
9 private int lowY;
10
11 public int getLowY() { return lowY; }
12
13 private int highX;
14
15 public int getHighX() { return highX; }
16
17 private int highY;
18
19 public int getHighY() { return highY; }
20
21 public Fog(int lowX, int lowY, int highX, int highY) {
22 this.lowX = lowX;
23 this.lowY = lowY;
24 this.highX = highX;
25 this.highY = highY;
26 }
27
28 public void decrease() {
29 lowX += 1;
30 lowY += 1;
31 highX -= 1;
32 highY -= 1;
33 System.out.println("fog decrease....");
34 }
35
36 public void reset() {
37 lowX = -1;
38 lowY = -1;
39 highX = -1;
40 highY = -1;
41 }
42
43 public boolean isSafe() {
44 return lowX == -1 && lowY == -1 && highX == -1 && highY == -1;
45 }
46}
Fog(int lowX, int lowY, int highX, int highY)
Definition Fog.java:21