Class Movement


  • public class Movement
    extends Object
    Operations related to player movement
    • Constructor Detail

      • Movement

        public Movement()
    • Method Detail

      • setSailDirection

        @Deprecated
        public static void setSailDirection​(int direction)
        Deprecated.
        Initiates sailing in the specified direction on the 16-point compass. The direction value must be between 0 and 15, where:
        • 0 represents South
        • 4 represents West
        • 8 represents North
        • 12 represents East
        • All other values represent the intermediate clockwise directions
        Parameters:
        direction - the heading to sail toward, from 0 (South) through 15 (South-South-East), aligned to a 16-step clockwise compass.
      • walkTowards

        public static void walkTowards​(SceneNode destination)
      • walkTo

        public static boolean walkTo​(CoordArea area)
      • walkTo

        public static boolean walkTo​(Area area)
        Returns:
        will return false if it fails to walk to the position; true if it is walking
      • walkTo

        public static boolean walkTo​(SceneNode position)
        Returns:
        will return false if it fails to walk to the position; true if it is walking
      • clearCachedPath

        @Deprecated
        public static void clearCachedPath()
        Deprecated.
      • isStaminaEnhancementActive

        public static boolean isStaminaEnhancementActive()
      • isRunEnabled

        public static boolean isRunEnabled()
      • getRunEnergy

        public static int getRunEnergy()
      • toggleRun

        public static boolean toggleRun​(boolean on)
      • getDestination

        public static Position getDestination()
      • getDestinationCoord

        public static Coord getDestinationCoord()
      • isDestinationSet

        public static boolean isDestinationSet()