Package org.rspeer.game
Class Wilderness
- java.lang.Object
-
- org.rspeer.game.Wilderness
-
public class Wilderness extends Object
TheWildernessclass 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 Constructor Description Wilderness()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intgetLevel()Gets the Wilderness level of the player's current position.static intgetLevel(SceneNode position)Gets the Wilderness level of a specified position.
-
-
-
Method Detail
-
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
public static int getLevel(SceneNode position)
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
-
-