Files
ReplayModCinematic/src/main/java/eu/crushedpixel/replaymod/interpolation/Interpolation.java
CrushedPixel 5100b63964 Warning, GIGANTIC COMMIT!
Replaced Keyframe subclasses with Generic Types of Keyframe and replaced all instanceof calls
Replaced implementations of Linear and Spline interpolation to interpolate any Object that extends KeyframeValue and contains at least one public double Field. I'll need this for Keyframe interpolation in CustomImageObject Transformations
Made MarkerKeyframe *no* subclass of Keyframe to avoid conflicts with PositionKeyframe in instanceof checks for Keyframe#getValue
Created KeyframeList which extends ArrayList to provide some helping functions which DRY up the ReplayHandler
Split up ReplayHandler's keyframeList into timeKeyframeList and positionKeyframeList
2015-07-08 04:13:24 +02:00

8 lines
203 B
Java

package eu.crushedpixel.replaymod.interpolation;
public interface Interpolation<T extends KeyframeValue> {
void prepare();
void applyPoint(float position, T toEdit);
void addPoint(T pos);
}