RuneHive-Game
Loading...
Searching...
No Matches
com.runehive.content.lms.fog.Fog Class Reference

Public Member Functions

void decrease ()
 Fog (int lowX, int lowY, int highX, int highY)
int getHighX ()
int getHighY ()
int getLowX ()
int getLowY ()
boolean isSafe ()
void reset ()

Private Attributes

int highX
int highY
int lowX
int lowY

Detailed Description

Definition at line 3 of file Fog.java.

Constructor & Destructor Documentation

◆ Fog()

com.runehive.content.lms.fog.Fog.Fog ( int lowX,
int lowY,
int highX,
int highY )

Definition at line 21 of file Fog.java.

21 {
22 this.lowX = lowX;
23 this.lowY = lowY;
24 this.highX = highX;
25 this.highY = highY;
26 }

References highX, highY, lowX, and lowY.

Member Function Documentation

◆ decrease()

void com.runehive.content.lms.fog.Fog.decrease ( )

Definition at line 28 of file Fog.java.

28 {
29 lowX += 1;
30 lowY += 1;
31 highX -= 1;
32 highY -= 1;
33 System.out.println("fog decrease....");
34 }

References highX, highY, lowX, and lowY.

◆ getHighX()

int com.runehive.content.lms.fog.Fog.getHighX ( )

Definition at line 15 of file Fog.java.

15{ return highX; }

References highX.

◆ getHighY()

int com.runehive.content.lms.fog.Fog.getHighY ( )

Definition at line 19 of file Fog.java.

19{ return highY; }

References highY.

◆ getLowX()

int com.runehive.content.lms.fog.Fog.getLowX ( )

Definition at line 7 of file Fog.java.

7{ return lowX; }

References lowX.

◆ getLowY()

int com.runehive.content.lms.fog.Fog.getLowY ( )

Definition at line 11 of file Fog.java.

11{ return lowY; }

References lowY.

◆ isSafe()

boolean com.runehive.content.lms.fog.Fog.isSafe ( )

Definition at line 43 of file Fog.java.

43 {
44 return lowX == -1 && lowY == -1 && highX == -1 && highY == -1;
45 }

References highX, highY, lowX, and lowY.

◆ reset()

void com.runehive.content.lms.fog.Fog.reset ( )

Definition at line 36 of file Fog.java.

36 {
37 lowX = -1;
38 lowY = -1;
39 highX = -1;
40 highY = -1;
41 }

References highX, highY, lowX, and lowY.

Member Data Documentation

◆ highX

int com.runehive.content.lms.fog.Fog.highX
private

Definition at line 13 of file Fog.java.

Referenced by decrease(), Fog(), getHighX(), isSafe(), and reset().

◆ highY

int com.runehive.content.lms.fog.Fog.highY
private

Definition at line 17 of file Fog.java.

Referenced by decrease(), Fog(), getHighY(), isSafe(), and reset().

◆ lowX

int com.runehive.content.lms.fog.Fog.lowX
private

Definition at line 5 of file Fog.java.

Referenced by decrease(), Fog(), getLowX(), isSafe(), and reset().

◆ lowY

int com.runehive.content.lms.fog.Fog.lowY
private

Definition at line 9 of file Fog.java.

Referenced by decrease(), Fog(), getLowY(), isSafe(), and reset().


The documentation for this class was generated from the following file:
  • java/com/runehive/content/lms/fog/Fog.java