Package rsb.wrappers

Class RSPlayer

All Implemented Interfaces:
Clickable, Clickable07, Positionable

public class RSPlayer extends RSCharacter
Represents a player.
  • Constructor Details

    • RSPlayer

      public RSPlayer(MethodContext ctx, net.runelite.api.Player p)
  • Method Details

    • getAccessor

      public net.runelite.api.Actor getAccessor()
    • getInteracting

      public net.runelite.api.Actor getInteracting()
    • getCombatLevel

      public int getCombatLevel()
    • isLocalPlayerMoving

      public boolean isLocalPlayerMoving()
    • getName

      public String getName()
      Overrides:
      getName in class RSCharacter
    • getTeam

      public int getTeam()
    • isIdle

      public boolean isIdle()
    • doAction

      public boolean doAction(String action)
      Description copied from class: RSCharacter
      Performs an action on a humanoid character (tall and skinny).
      Specified by:
      doAction in interface Clickable
      Overrides:
      doAction in class RSCharacter
      Parameters:
      action - The action of the menu entry to be clicked (if available).
      Returns:
      true if the option was found; otherwise false.
    • doAction

      public boolean doAction(String action, String target)
      Description copied from class: RSCharacter
      Performs an action on a humanoid character (tall and skinny).
      Specified by:
      doAction in interface Clickable
      Overrides:
      doAction in class RSCharacter
      Parameters:
      action - The action of the menu entry to be clicked (if available).
      target - The option of the menu entry to be clicked (if available).
      Returns:
      true if the option was found; otherwise false.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getPosition

      public RSTile getPosition()