Package com.fs.starfarer.api
Interface AnimationAPI
public interface AnimationAPI
-
Method Summary
Modifier and TypeMethodDescriptionfloat
int
getFrame()
float
int
void
pause()
void
play()
void
reset()
Reset the pause/play state and let the animation behave normally.void
setAlphaMult
(float alphaMult) void
setFrame
(int frame) void
setFrameRate
(float frameRate)
-
Method Details
-
getFrame
int getFrame()- Returns:
- Index of current animation frame, 0-based.
-
getNumFrames
int getNumFrames() -
setFrame
void setFrame(int frame) -
play
void play() -
pause
void pause() -
reset
void reset()Reset the pause/play state and let the animation behave normally. -
getAlphaMult
float getAlphaMult() -
setAlphaMult
void setAlphaMult(float alphaMult) -
getFrameRate
float getFrameRate() -
setFrameRate
void setFrameRate(float frameRate)
-