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 void
clearCachedPath()
Deprecated.static WebPath
getCachedPath()
Deprecated.static Position
getDestination()
static int
getRunEnergy()
static boolean
isDestinationSet()
static boolean
isRunEnabled()
static boolean
isStaminaEnhancementActive()
static boolean
toggleRun(boolean on)
static boolean
walkTo(SceneNode position)
static void
walkTowards(SceneNode destination)
-
-
-
Method Detail
-
walkTowards
public static void walkTowards(SceneNode destination)
-
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()
-
isDestinationSet
public static boolean isDestinationSet()
-
-