Class Character
- java.lang.Object
-
- net.eternalclient.api.wrappers.interactives.Entity
-
- net.eternalclient.api.wrappers.interactives.Character
-
- All Implemented Interfaces:
Identifiable
,Interactable
,Positionable
public abstract class Character extends Entity
A class representing a character in the game with various methods to access its attributes and interact with other characters.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
Character.State
-
Method Summary
-
Methods inherited from class net.eternalclient.api.wrappers.interactives.Entity
getModel, getOrientation, getOrientationId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.eternalclient.api.interfaces.Identifiable
containsName, getColoredName, getID, getName, getType, hasID, hasName
-
Methods inherited from interface net.eternalclient.api.interfaces.Interactable
containsAction, getActions, getClickBox, getConvexHull, getConvexHullOnScreen, getInteractID, getInteractPoint, getInteractX, getInteractY, getPolygons, getPolygonsOnScreen, hasAction, hasAction, interact, interact, interact, isOnScreen
-
Methods inherited from interface net.eternalclient.api.interfaces.Positionable
canReach, canReach, canReachSurrounding, canReachSurrounding, derive, derive, derive, distance, distance, distanceTo, distanceTo2D, distanceTo2DHypotenuse, distanceToHypotenuse, distanceToPath, draw, drawMinimapDot, drawText, getCanvasTextLocation, getCanvasTilePoly, GetChunkRotation, getHeight, getLocalTile, getMinimapPoint, getMovementFlags, getRectArea, getRegionId, getRegionTile, getSceneTile, getSurroundingArea, getWalkableTile, getWidth, getWorldTile, hasLineOfSightTo, hasLineOfSightTo, inLineOfSight, isInArea, isInArea, isInArea2D, isInArea2D, isInMeleeDistance, isInScene, isUnderRoof, locatedAt, pathTo, walkingDistance
-
-
-
-
Constructor Detail
-
Character
public Character(RSActor actor)
-
-
Method Detail
-
getActor
public RSActor getActor()
-
setActor
public void setActor(RSActor actor)
-
getIndex
public abstract int getIndex()
-
getWorldView
public RSWorldView getWorldView()
- Specified by:
getWorldView
in interfacePositionable
- Specified by:
getWorldView
in classEntity
-
getPlane
public int getPlane()
-
getWorldX
public int getWorldX()
-
getWorldY
public int getWorldY()
-
getSceneX
public int getSceneX()
-
getSceneY
public int getSceneY()
-
getLocalX
public int getLocalX()
-
getLocalY
public int getLocalY()
-
getRegionX
public int getRegionX()
-
getRegionY
public int getRegionY()
-
isAnimating
public boolean isAnimating()
-
getWalkAnimation
public int getWalkAnimation()
-
getRunAnimation
public int getRunAnimation()
-
getStandAnimation
public int getStandAnimation()
-
getAnimation
public int getAnimation()
-
getAnimationFrame
public int getAnimationFrame()
-
getSpotAnimation
public int getSpotAnimation()
-
getSpotAnimationFrame
public int getSpotAnimationFrame()
-
getSpotAnimationCycle
public int getSpotAnimationCycle()
-
getSpotAnimationHeight
public int getSpotAnimationHeight()
-
getMovementAnimation
public int getMovementAnimation()
-
getMovementFrame
public int getMovementFrame()
-
getMovementCycle
public int getMovementCycle()
-
getPlayerCycles
public int getPlayerCycles()
-
isMoving
public boolean isMoving()
-
isStandingStill
public boolean isStandingStill()
-
getTargetIndex
public int getTargetIndex()
-
getTarget
public Character getTarget()
-
isInteractingWith
public boolean isInteractingWith(NPC npc)
-
isInteractingWith
public boolean isInteractingWith(Player player)
-
getTargetedBy
public Character getTargetedBy(boolean prioritisePlayers)
-
getTargetedByPlayer
public Player getTargetedByPlayer()
-
getAllTargetedByPlayer
public java.util.List<Player> getAllTargetedByPlayer()
-
getTargetedByNPC
public NPC getTargetedByNPC()
-
getAllTargetedByNPC
public java.util.List<NPC> getAllTargetedByNPC()
-
getHealthPercent
public int getHealthPercent()
-
isHealthBarVisible
public boolean isHealthBarVisible()
-
isInCombat
public boolean isInCombat()
-
isDead
public boolean isDead()
-
-