Class Wilderness
java.lang.Object
org.rspeer.game.Wilderness
The
Wilderness class provides utilities for determining the Wilderness level
in the game based on the player's position or a specific location.
The class calculates the Wilderness level efficiently using predefined zones and boundaries within the game's world.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Wilderness
public Wilderness()
-
-
Method Details
-
getLevel
public static int getLevel()Gets the Wilderness level of the player's current position.- Returns:
- the Wilderness level of the player's position, or
0if outside the Wilderness
-
getLevel
Gets the Wilderness level of a specified position.The Wilderness level is determined based on the position's coordinates and its relation to predefined Wilderness zones.
- Parameters:
position- theSceneNoderepresenting the position to check- Returns:
- the Wilderness level of the specified position, or
0if outside the Wilderness
-