api: add getters for actor anim and spotanim frame

This commit is contained in:
Adam
2021-03-30 16:23:38 -04:00
parent 1c191f005b
commit 520f686006

View File

@@ -208,25 +208,56 @@ public interface Actor extends Renderable
void setAnimation(int animation); void setAnimation(int animation);
/** /**
* Sets the frame of the animation the actor is performing. * Get the frame of the animation the actor is performing
* *
* @param actionFrame the animation frame * @return the frame
*/ */
@VisibleForDevtools int getAnimationFrame();
void setActionFrame(int actionFrame);
/** /**
* Gets the graphic that is currently on the player. * Sets the frame of the animation the actor is performing.
* *
* @return the graphic of the actor * @param frame the animation frame
* @deprecated use setAnimationFrame
*/
@Deprecated
void setActionFrame(int frame);
/**
* Sets the frame of the animation the actor is performing.
*
* @param frame the animation frame
*/
void setAnimationFrame(int frame);
/**
* Get the graphic/spotanim that is currently on the actor.
*
* @return the spotanim of the actor
* @see GraphicID * @see GraphicID
*/ */
int getGraphic(); int getGraphic();
@VisibleForDevtools /**
* Set the graphic/spotanim that is currently on the actor.
*
* @param graphic The spotanim id
* @see GraphicID
*/
void setGraphic(int graphic); void setGraphic(int graphic);
@VisibleForDevtools /**
* Get the frame of the currently playing spotanim
*
* @return
*/
int getSpotAnimFrame();
/**
* Set the frame of the currently playing spotanim
*
* @param spotAnimFrame
*/
void setSpotAnimFrame(int spotAnimFrame); void setSpotAnimFrame(int spotAnimFrame);
/** /**