Package dev.twilite.game.wrapper
Class Player
java.lang.Object
dev.twilite.game.wrapper.Actor<dev.twilite.game.internal.memory.RSPlayer>
dev.twilite.game.wrapper.Player
- All Implemented Interfaces:
Interactable,InteractableUnit,Unit
Player actor wrapper.
-
Method Summary
Modifier and TypeMethodDescriptionintReturns this player's appearance identikit id attype,-1when unavailable or-2when it is not an item.name()Returns the standardized player name.options()Returns known player menu options.intprayer()Returns this player's prayer overhead icon id.booleanselect()Enqueues the selected-use-on-player action.intskull()Returns this player's skull icon id.booleantarget()Enqueues the selected-target-on-player action.Methods inherited from class dev.twilite.game.wrapper.Actor
animating, animation, area, coord, dying, effects, equals, faceUnit, facingUnit, facingUnit, fine, headbarPercent, headbarRendered, headbars, headMessage, healthPercent, healthRendered, hitmarks, index, map, moving, orientation, stance, worldMethods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.twilite.game.trait.Interactable
interact, optionMethods inherited from interface dev.twilite.game.trait.Unit
directPathTo, directPathTo, directPathTo, distanceTo, distanceTo, distanceTo, lineOfSightTo, lineOfSightTo, lineOfSightTo, lineOfWalkTo, lineOfWalkTo, lineOfWalkTo, manhattanDistanceTo, manhattanDistanceTo, manhattanDistanceTo, pathInDirection
-
Method Details
-
name
Returns the standardized player name. Standardized text is tag-stripped, trimmed, and lowercased. -
kit
Returns this player's appearance identikit id attype,-1when unavailable or-2when it is not an item. If it is an item, this will correspond to a constant fromItemId -
skull
public int skull()Returns this player's skull icon id. -
prayer
public int prayer()Returns this player's prayer overhead icon id. -
options
Returns known player menu options. -
target
public boolean target()Enqueues the selected-target-on-player action. -
select
public boolean select()Enqueues the selected-use-on-player action.
-