Package net.storm.api.domain.actors
Interface IActor
- All Superinterfaces:
net.runelite.api.Actor,net.runelite.api.CameraFocusableEntity,Identifiable,Interactable,Locatable,Nameable,net.runelite.api.Node,net.runelite.api.Renderable,RuneLiteWrapper<net.runelite.api.Actor>,SceneEntity
public interface IActor
extends net.runelite.api.Actor, SceneEntity, RuneLiteWrapper<net.runelite.api.Actor>
Represents an actor in the game world (player or NPC).
Actors are entities that can move, animate, and interact with other actors. This interface provides methods to query actor state and initiate interactions.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidattack()Attacks this actor.intgetIndex()Gets the actor's index in the actor array.Gets the actor this actor is currently interacting with.intGets the number of active spot animations (graphics) on the actor.Gets the actor's current combat target.booleanChecks if the actor is currently animating.booleanChecks if the actor's health bar is currently visible.booleanisIdle()Checks if the actor is idle (not animating and not moving).booleanisMoving()Checks if the actor is currently moving.Methods inherited from interface net.runelite.api.Actor
clearSpotAnims, createSpotAnim, getAnimation, getAnimationFrame, getAnimationHeightOffset, getCanvasImageLocation, getCanvasSpriteLocation, getCanvasTextLocation, getCanvasTilePoly, getCombatLevel, getConvexHull, getCurrentOrientation, getGraphic, getGraphicHeight, getHealthRatio, getHealthScale, getIdlePoseAnimation, getIdleRotateLeft, getIdleRotateRight, getLocalLocation, getLogicalHeight, getMinimapLocation, getName, getOrientation, getOverheadCycle, getOverheadText, getPoseAnimation, getPoseAnimationFrame, getRunAnimation, getSpotAnimFrame, getSpotAnims, getWalkAnimation, getWalkRotate180, getWalkRotateLeft, getWalkRotateRight, getWorldArea, getWorldLocation, getWorldView, hasSpotAnim, isDead, isInteracting, removeSpotAnim, setActionFrame, setAnimation, setAnimationFrame, setDead, setGraphic, setGraphicHeight, setIdlePoseAnimation, setIdleRotateLeft, setIdleRotateRight, setOverheadCycle, setOverheadText, setPoseAnimation, setPoseAnimationFrame, setRunAnimation, setSpotAnimFrame, setWalkAnimation, setWalkRotate180, setWalkRotateLeft, setWalkRotateRightMethods inherited from interface net.runelite.api.CameraFocusableEntity
getCameraFocusMethods inherited from interface net.storm.api.domain.Identifiable
getIdMethods inherited from interface net.storm.api.domain.Interactable
generateMenu, generateMenu, generateMenu, generateMenu, generateMenu, generateMenu, generateMenu, generateMenu, generateMenu, generateMenu, getActionIndex, getActions, getClickPoint, hasAction, hasAction, hasAction, interact, interact, interact, interact, interact, interact, interact, interact, interact, interact, interact, interact, interact, interact, interact, interact, isInteractable, isInteractable, isInteractableMethods inherited from interface net.storm.api.domain.Locatable
distanceTo, distanceTo, distanceTo2DHypotenuse, distanceToHypotenuse, getLocalLocation, getPlane, getWorldLocation, getWorldX, getWorldYMethods inherited from interface net.runelite.api.Node
getHash, getNext, getPreviousMethods inherited from interface net.runelite.api.Renderable
getModel, getModelHeight, setModelHeightMethods inherited from interface net.storm.api.domain.RuneLiteWrapper
getWrappedMethods inherited from interface net.storm.api.domain.SceneEntity
getWorldView
-
Method Details
-
getIndex
int getIndex()Gets the actor's index in the actor array.- Returns:
- the actor index
-
attack
void attack()Attacks this actor.This will attempt to initiate combat with the actor.
-
isAnimating
boolean isAnimating()Checks if the actor is currently animating.Animation includes any movement-related animations, combat animations, etc.
- Returns:
- true if animating, false otherwise
-
isIdle
boolean isIdle()Checks if the actor is idle (not animating and not moving).- Returns:
- true if idle, false otherwise
-
isHealthBarVisible
boolean isHealthBarVisible()Checks if the actor's health bar is currently visible.Health bars typically appear when an actor is in combat or recently damaged.
- Returns:
- true if health bar is visible, false otherwise
-
isMoving
boolean isMoving()Checks if the actor is currently moving.- Returns:
- true if moving, false otherwise
-
getSpotAnimationCount
int getSpotAnimationCount()Gets the number of active spot animations (graphics) on the actor.Spot animations include spell effects, special attack graphics, etc.
- Returns:
- the number of active spot animations
-
getTarget
IActor getTarget()Gets the actor's current combat target.- Returns:
- the target actor, or null if not in combat
-
getInteracting
IActor getInteracting()Gets the actor this actor is currently interacting with.This includes combat targets, following, and other interactions.
- Specified by:
getInteractingin interfacenet.runelite.api.Actor- Returns:
- the interacting actor, or null if not interacting
-