@Override public MoveByStep getCopy() { final MoveByStep step = new MoveByStep(duration, interpolation, actor); step.amountX = amountX; step.amountY = amountY; return step; }
public static MoveByStep obtain( final float x, final float y, final float duration, final Interpolation interpolation) { final MoveByStep positionByStep = Step.obtain(MoveByStep.class); positionByStep.amountX = x; positionByStep.amountY = y; positionByStep.duration = duration; positionByStep.interpolation = interpolation; return positionByStep; }
@Override public MoveByStep getPooledCopy() { final MoveByStep step = obtain(amountX, amountY, duration, interpolation); step.actor = actor; return step; }