api: add actor animations

This commit is contained in:
Adam
2021-02-26 23:25:58 -05:00
parent 7054d83e16
commit 9588d72a62

View File

@@ -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.
*