api: add getters for actor anim and spotanim frame
This commit is contained in:
@@ -208,25 +208,56 @@ public interface Actor extends Renderable
|
||||
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
|
||||
void setActionFrame(int actionFrame);
|
||||
int getAnimationFrame();
|
||||
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
int getGraphic();
|
||||
|
||||
@VisibleForDevtools
|
||||
/**
|
||||
* Set the graphic/spotanim that is currently on the actor.
|
||||
*
|
||||
* @param graphic The spotanim id
|
||||
* @see GraphicID
|
||||
*/
|
||||
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);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user