001package com.fs.starfarer.api; 002 003public interface AnimationAPI { 004 /** 005 * @return Index of current animation frame, 0-based. 006 */ 007 int getFrame(); 008 009 010 int getNumFrames(); 011 void setFrame(int frame); 012 013 void play(); 014 void pause(); 015 016 /** 017 * Reset the pause/play state and let the animation behave normally. 018 */ 019 void reset(); 020 021 float getAlphaMult(); 022 void setAlphaMult(float alphaMult); 023 024 025 float getFrameRate(); 026 void setFrameRate(float frameRate); 027}