Package org.rspeer.game.movement
Class Movement
- java.lang.Object
-
- org.rspeer.game.movement.Movement
-
public class Movement extends Object
Operations related to player movement
-
-
Constructor Summary
Constructors Constructor Description Movement()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidclearCachedPath()Deprecated.static WebPathgetCachedPath()Deprecated.static PositiongetDestination()static CoordgetDestinationCoord()static intgetRunEnergy()static booleanisDestinationSet()static booleanisRunEnabled()static booleanisStaminaEnhancementActive()static voidsetSailDirection(int direction)Deprecated.static booleantoggleRun(boolean on)static booleanwalkTo(SceneNode position)static booleanwalkTo(CoordArea area)static booleanwalkTo(Area area)static voidwalkTowards(SceneNode destination)
-
-
-
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
-
getCachedPath
@Deprecated public static WebPath getCachedPath()
Deprecated.
-
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()
-
-