Animation - Fish-In-A-Suit/Conquest GitHub Wiki
This class represents an animation that can be applied to an AnimatedModel. It contains the length of the animation in seconds (length) and an array of __KeyFrame__s. The array keyFrames is ordered based on the order of the keyframes in the animation (first keyframe of the animation in array at index 0).
package animation;
import animatedModel.AnimatedModel;
public class Animation {
private final float length;//in seconds
private final KeyFrame[] keyFrames;
public Animation(float lengthInSeconds, KeyFrame[] frames) {
this.keyFrames = frames;
this.length = lengthInSeconds;
}
public float getLength() {
return length;
}
public KeyFrame[] getKeyFrames() {
return keyFrames;
}
}