Ejemplo n.º 1
0
  @Override
  public MoveByStep getCopy() {
    final MoveByStep step = new MoveByStep(duration, interpolation, actor);

    step.amountX = amountX;
    step.amountY = amountY;

    return step;
  }
Ejemplo n.º 2
0
  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;
  }
Ejemplo n.º 3
0
 @Override
 public MoveByStep getPooledCopy() {
   final MoveByStep step = obtain(amountX, amountY, duration, interpolation);
   step.actor = actor;
   return step;
 }