api: add actor animations
This commit is contained in:
@@ -103,12 +103,6 @@ public interface Actor extends Renderable
|
|||||||
*/
|
*/
|
||||||
LocalPoint getLocalLocation();
|
LocalPoint getLocalLocation();
|
||||||
|
|
||||||
@VisibleForDevtools
|
|
||||||
void setIdlePoseAnimation(int animation);
|
|
||||||
|
|
||||||
@VisibleForDevtools
|
|
||||||
void setPoseAnimation(int animation);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the orientation of the actor.
|
* Gets the orientation of the actor.
|
||||||
*
|
*
|
||||||
@@ -126,22 +120,84 @@ public interface Actor extends Renderable
|
|||||||
int getAnimation();
|
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
|
* @return the animation ID
|
||||||
* @see AnimationID
|
* @see AnimationID
|
||||||
*/
|
*/
|
||||||
int getPoseAnimation();
|
int getPoseAnimation();
|
||||||
|
|
||||||
|
@VisibleForDevtools
|
||||||
|
void setPoseAnimation(int animation);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If this is equal to the pose animation, the pose animation is ignored when
|
* The idle pose animation. If the actor is not walking or otherwise animating, this will be used
|
||||||
* you are doing another action.
|
* for their pose animation.
|
||||||
*
|
*
|
||||||
* @return the animation ID
|
* @return the animation ID
|
||||||
* @see AnimationID
|
* @see AnimationID
|
||||||
*/
|
*/
|
||||||
int getIdlePoseAnimation();
|
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.
|
* Sets an animation for the actor to perform.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user