Class Wilderness


  • public class Wilderness
    extends Object
    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 Detail

      • Wilderness

        public Wilderness()
    • 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 0 if 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 - the SceneNode representing the position to check
        Returns:
        the Wilderness level of the specified position, or 0 if outside the Wilderness