Package rsb.wrappers

Class RSLocalPath


public class RSLocalPath extends RSPath
Author:
GigiaJ
  • Field Details

  • Constructor Details

  • Method Details

    • traverse

      public boolean traverse(EnumSet<RSPath.TraversalOption> options)
      Takes a step along this path if appropriate. If the path cannot be traversed due to the player being too far from its vertices or already at the end vertex, false will be returned. In all other cases, true will be returned, but an action will not necessarily be performed (based on the given options).
      Specified by:
      traverse in class RSPath
      Parameters:
      options - Walking style options.
      Returns:
      true if this path is currently valid for the player; otherwise false.
    • isValid

      public boolean isValid()
      Checks whether this path can be traversed by the player. This will be the case provided that the player near to one of its vertices, but not already standing on the end vertex.
      Specified by:
      isValid in class RSPath
      Returns:
      true if the player can walk along this path; otherwise false.
    • getNext

      public RSTile getNext()
      Gets the next immediately available vertex in this path.
      Specified by:
      getNext in class RSPath
      Returns:
      The next walkable RSTile.
    • getStart

      public RSTile getStart()
      Gets the start tile of this path.
      Specified by:
      getStart in class RSPath
      Returns:
      The start RSTile.
    • getEnd

      public RSTile getEnd()
      Gets the end tile of this path.
      Specified by:
      getEnd in class RSPath
      Returns:
      The end RSTile.
    • getCurrentTilePath

      public RSTilePath getCurrentTilePath()
      Returns the calculated RSTilePath that is currently providing data to this RSLocalPath.
      Returns:
      The current RSTile path; or null.