46 lines
1.2 KiB
Java
46 lines
1.2 KiB
Java
package play_clj;
|
|
import com.badlogic.gdx.graphics.g2d.Animation;
|
|
import java.util.Arrays;
|
|
import com.badlogic.gdx.graphics.g2d.TextureRegion;
|
|
import com.badlogic.gdx.utils.Array;
|
|
|
|
public class Animation2 extends Animation<TextureRegion> {
|
|
public Animation2(float x ,TextureRegion[] y) {
|
|
super(x, y);
|
|
}
|
|
|
|
|
|
public Animation2(float x , Array<? extends TextureRegion> y, Animation.PlayMode z) {
|
|
super(x, y, z);
|
|
}
|
|
|
|
public TextureRegion getKeyFrame(float stateTime) {
|
|
return super.getKeyFrame(stateTime);
|
|
}
|
|
|
|
public TextureRegion getKeyFrame(float stateTime, boolean looping) {
|
|
return super.getKeyFrame(stateTime, looping);
|
|
}
|
|
|
|
|
|
public TextureRegion getKeyFrame(double stateTime) {
|
|
return super.getKeyFrame((float) stateTime);
|
|
}
|
|
|
|
public TextureRegion getKeyFrame(double stateTime, boolean looping) {
|
|
return super.getKeyFrame((float)stateTime, looping);
|
|
}
|
|
|
|
public TextureRegion getKeyFrame(int stateTime) {
|
|
return super.getKeyFrame((float)stateTime);
|
|
}
|
|
|
|
public TextureRegion getKeyFrame(int stateTime, boolean looping) {
|
|
return super.getKeyFrame((float)stateTime, looping);
|
|
}
|
|
|
|
public Object[] getRawKeyFrames() {
|
|
return super.getKeyFrames();
|
|
}
|
|
}
|