cleanup, util packages reorganized, removed some sysouts

This commit is contained in:
Ondřej Hruška
2014-04-23 21:08:15 +02:00
parent 34e1f3c797
commit 289145a9aa
170 changed files with 472 additions and 446 deletions
@@ -0,0 +1,52 @@
package mightypork.util.timing;
import mightypork.util.math.Easing;
import mightypork.util.math.constraints.num.mutable.NumAnimated;
/**
* Animator that upon reaching max, animates back down and then up again
*
* @author MightyPork
*/
public class AnimatorBounce extends Animator {
private final boolean wasUp = false;
public AnimatorBounce(double start, double end, double period, Easing easing)
{
super(start, end, period, easing);
}
public AnimatorBounce(double start, double end, double period)
{
super(start, end, period);
}
public AnimatorBounce(double period, Easing easing)
{
super(period, easing);
}
public AnimatorBounce(double period)
{
super(period);
}
@Override
protected void nextCycle(NumAnimated anim)
{
if (wasUp) {
anim.fadeOut();
} else {
anim.fadeIn();
}
}
}