You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
777 B
47 lines
777 B
10 years ago
|
package mightypork.gamecore.util.math.timing.animation;
|
||
10 years ago
|
|
||
|
|
||
10 years ago
|
import mightypork.gamecore.util.math.Easing;
|
||
10 years ago
|
|
||
|
|
||
|
/**
|
||
|
* Animator that upon reaching top, jumps straight to zero and continues another
|
||
|
* cycle.
|
||
|
*
|
||
10 years ago
|
* @author Ondřej Hruška (MightyPork)
|
||
10 years ago
|
*/
|
||
|
public class AnimatorRewind extends Animator {
|
||
|
|
||
|
public AnimatorRewind(double start, double end, double period, Easing easing)
|
||
|
{
|
||
|
super(start, end, period, easing);
|
||
|
}
|
||
|
|
||
|
|
||
|
public AnimatorRewind(double start, double end, double period)
|
||
|
{
|
||
|
super(start, end, period);
|
||
|
}
|
||
|
|
||
|
|
||
|
public AnimatorRewind(double period, Easing easing)
|
||
|
{
|
||
|
super(period, easing);
|
||
|
}
|
||
|
|
||
|
|
||
|
public AnimatorRewind(double period)
|
||
|
{
|
||
|
super(period);
|
||
|
}
|
||
|
|
||
|
|
||
|
@Override
|
||
|
protected void nextCycle(NumAnimated anim)
|
||
|
{
|
||
|
anim.reset();
|
||
|
anim.fadeIn();
|
||
|
}
|
||
|
|
||
|
}
|