Exemple #1
0
  @Override
  public MoveByStep getCopy() {
    final MoveByStep step = new MoveByStep(duration, interpolation, actor);

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

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