Class Player
- java.lang.Object
-
- org.dreambot.api.wrappers.interactive.interact.Interactable
-
- org.dreambot.api.wrappers.interactive.Entity
-
- org.dreambot.api.wrappers.interactive.Character
-
- org.dreambot.api.wrappers.interactive.Player
-
- All Implemented Interfaces:
Identifiable
,Locatable
,Verified
public class Player extends Character
-
-
Constructor Summary
Constructors Constructor Description Player(java.lang.Object reference)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
getActions()
java.awt.Rectangle
getBoundingBox()
Gets the bounding box for the entity's modelPlayerComposite
getComposite()
boolean
getHidden()
int
getID()
Gets ID number of the given object.int
getIndex()
Gets index location of the current Character.int
getLevel()
Gets the Character's combat level.Model
getModel()
Gets the model of the entityjava.lang.String
getName()
Gets the name of the entityNameComposite
getNameComposite()
int
getOverheadIcon()
int
getSkullIcon()
int
getTeam()
boolean
hasAction(java.lang.String... actions)
Determines if player contains at least one of the following actions.boolean
isHidden()
boolean
isSkulled()
void
setIndex(int index)
java.lang.String
toString()
-
Methods inherited from class org.dreambot.api.wrappers.interactive.Character
canAttack, equals, exists, getAnimatedModel, getAnimatedModel, getAnimation, getAnimationDelay, getCharacterInteractingWithMe, getCombatCycles, getCombatTime, getFacingDirection, getGridX, getGridY, getHeadFrame, getHealth, getHealthPercent, getHitSplatCycles, getHitSplats, getHitSplatTypes, getInteractingCharacter, getInteractingIndex, getLocalX, getLocalY, getMaxHealth, getOrientation, getOverhead, getQueueSize, getQueueTraversed, getQueueX, getQueueY, getRenderableHeight, getRotation, getStandAnimation, getTailFrame, getUID, getWalkAnimation, getWalkingQueueSpeed, getX, getY, getZ, hashCode, isAnimating, isHealthBarVisible, isInCombat, isInteractedWith, isInteracting, isMoving, isStandingStill
-
Methods inherited from class org.dreambot.api.wrappers.interactive.Entity
canReach, distance, distance, distance, getCenterPoint, getClickablePoint, getReference, getSurroundingArea, getTile, getTileReference, interact, isOnScreen, walkingDistance
-
Methods inherited from class org.dreambot.api.wrappers.interactive.interact.Interactable
interact, interact, interactForceLeft, interactForceRight
-
-
-
-
Method Detail
-
getHidden
public boolean getHidden()
-
getOverheadIcon
public int getOverheadIcon()
-
getTeam
public int getTeam()
-
getComposite
public PlayerComposite getComposite()
-
getLevel
public int getLevel()
Description copied from class:Character
Gets the Character's combat level.
-
getSkullIcon
public int getSkullIcon()
-
isSkulled
public boolean isSkulled()
-
isHidden
public boolean isHidden()
-
getNameComposite
public NameComposite getNameComposite()
-
getName
public java.lang.String getName()
Description copied from class:Entity
Gets the name of the entity- Specified by:
getName
in interfaceIdentifiable
- Specified by:
getName
in classEntity
- Returns:
- name of entity
-
getIndex
public int getIndex()
Description copied from class:Character
Gets index location of the current Character.
-
setIndex
public void setIndex(int index)
-
getBoundingBox
public java.awt.Rectangle getBoundingBox()
Description copied from class:Entity
Gets the bounding box for the entity's model- Overrides:
getBoundingBox
in classEntity
- Returns:
- bounding box of model
-
getID
public int getID()
Description copied from interface:Identifiable
Gets ID number of the given object.- Returns:
- the ID number as integer.
-
hasAction
public boolean hasAction(java.lang.String... actions)
Determines if player contains at least one of the following actions.
-
getActions
public java.lang.String[] getActions()
- Specified by:
getActions
in classEntity
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-