From 9588d72a62b6741f0825cb2fa90592f69a54de6d Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 26 Feb 2021 23:25:58 -0500 Subject: [PATCH] api: add actor animations --- .../src/main/java/net/runelite/api/Actor.java | 74 ++++++++++++++++--- 1 file changed, 65 insertions(+), 9 deletions(-) diff --git a/runelite-api/src/main/java/net/runelite/api/Actor.java b/runelite-api/src/main/java/net/runelite/api/Actor.java index 5ae80b23c6..9547290d04 100644 --- a/runelite-api/src/main/java/net/runelite/api/Actor.java +++ b/runelite-api/src/main/java/net/runelite/api/Actor.java @@ -103,12 +103,6 @@ public interface Actor extends Renderable */ LocalPoint getLocalLocation(); - @VisibleForDevtools - void setIdlePoseAnimation(int animation); - - @VisibleForDevtools - void setPoseAnimation(int animation); - /** * Gets the orientation of the actor. * @@ -126,22 +120,84 @@ public interface Actor extends Renderable int getAnimation(); /** - * Gets the secondary animation the actor is performing. + * Gets the secondary animation the actor is performing. Usually an idle animation, or one of the walking ones. * * @return the animation ID * @see AnimationID */ int getPoseAnimation(); + @VisibleForDevtools + void setPoseAnimation(int animation); + /** - * If this is equal to the pose animation, the pose animation is ignored when - * you are doing another action. + * The idle pose animation. If the actor is not walking or otherwise animating, this will be used + * for their pose animation. * * @return the animation ID * @see AnimationID */ int getIdlePoseAnimation(); + @VisibleForDevtools + void setIdlePoseAnimation(int animation); + + /** + * Animation used for rotating left if the actor is also not walking + * + * @return the animation ID + * @see AnimationID + */ + int getIdleRotateLeft(); + + /** + * Animation used for rotating right if the actor is also not walking + * + * @return the animation ID + * @see AnimationID + */ + int getIdleRotateRight(); + + /** + * Animation used for walking + * + * @return the animation ID + * @see AnimationID + */ + int getWalkAnimation(); + + /** + * Animation used for rotating left while walking + * + * @return the animation ID + * @see AnimationID + */ + int getWalkRotateLeft(); + + /** + * Animation used for rotating right while walking + * + * @return the animation ID + * @see AnimationID + */ + int getWalkRotateRight(); + + /** + * Animation used for an about-face while walking + * + * @return the animation ID + * @see AnimationID + */ + int getWalkRotate180(); + + /** + * Animation used for running + * + * @return the animation ID + * @see AnimationID + */ + int getRunAnimation(); + /** * Sets an animation for the actor to perform. *