public class SimplePlayer extends SimpleActor<simple.bot.internal.IPlayer> implements SimpleInteractable
ctx
Constructor and Description |
---|
SimplePlayer(ClientContext ctx,
simple.bot.internal.IPlayer reflectedObject,
int index) |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getActions()
Returns Actions of the object
|
int |
getCombatLevel() |
int[] |
getEquipment() |
int |
getGender() |
int |
getHeadIcon() |
int |
getHintIcon() |
int |
getId()
Returns id of the object
|
WorldPoint |
getLocation()
Position in world of object
|
java.lang.String |
getName()
The name of said object
|
HeadIcon |
getOverheadIcon() |
int |
getRights() |
int |
getSkullIcon() |
int |
getTeam() |
boolean |
interact(int actionId) |
boolean |
interact(SimplePlayerActions action) |
boolean |
interact(java.lang.String option) |
boolean |
isForcedHidden() |
boolean |
isHidden() |
equals, getAnimation, getCycleStatus, getGraphic, getHealth, getHealthRatio, getHeight, getInteracting, getInteractingIndex, getLocalX, getLocalY, getMaxHealth, getPathX, getPathY, getRemainingPath, getSize, inCombat, isAnimating, isDead, overheadText
getReflectedObject
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
distanceTo, within, withinRange
public SimplePlayer(ClientContext ctx, simple.bot.internal.IPlayer reflectedObject, int index)
ctx
- reflectedObject
- public java.lang.String[] getActions()
SimpleActionable
getActions
in interface SimpleActionable
public int getId()
SimpleIdentifiable
getId
in interface SimpleIdentifiable
public java.lang.String getName()
SimpleNamable
getName
in interface SimpleNamable
public WorldPoint getLocation()
SimpleLocatable
getLocation
in interface SimpleLocatable
public int getGender()
public int getCombatLevel()
public int getHeadIcon()
public int getSkullIcon()
public int getHintIcon()
public int getTeam()
public int getRights()
public boolean isHidden()
public boolean isForcedHidden()
public int[] getEquipment()
public HeadIcon getOverheadIcon()
public boolean interact(java.lang.String option)
interact
in interface SimpleInteractable
public boolean interact(SimplePlayerActions action)
public boolean interact(int actionId)