Added rl api to get animation information form actor

This commit is contained in:
Noodleeater
2021-02-20 22:01:53 +00:00
parent 16df7b4ee8
commit f01512b8cb
2 changed files with 27 additions and 0 deletions

View File

@@ -109,6 +109,16 @@ public interface Actor extends Renderable, Locatable
void setPoseAnimation(int animation);
/**
* Get the index of the PoseFrame (the index as it appears in the sequenceDefinition "frames" array).
*/
int getPoseFrame();
/**
* Get the number of cycles the pose frame has been displayed for.
*/
int getPoseFrameCycle();
/**
* Gets the orientation of the actor.
*
@@ -169,8 +179,15 @@ public interface Actor extends Renderable, Locatable
void setGraphic(int graphic);
int getSpotAnimationFrame();
void setSpotAnimFrame(int spotAnimFrame);
/**
* Get the number of cycles the SpotAnimation frame has been displayed for.
*/
int getSpotAnimationFrameCycle();
/**
* Gets the canvas area of the current tile the actor is standing on.
*

View File

@@ -3,4 +3,14 @@ package net.runelite.api;
public interface DynamicObject extends Renderable
{
int getAnimationID();
/**
* Get the index of the AnimFrame (the index as it appears in the sequenceDefinition "frames" array).
*/
int getAnimFrame();
/**
* Get the number of cycles that have elapsed in the whole animation.
*/
int getAnimCycleCount();
}