Project

General

Profile

« Previous | Next » 

Revision 55e6be1d

Added by Leszek Koltunski almost 3 years ago

Abstract the part that controls the 'Locked' and 'Back Moves' buttons from the two activities: the main one and the tutorial one.
This code had been duplicated there.

View differences:

src/main/java/org/distorted/effects/EffectController.java
19 19

  
20 20
package org.distorted.effects;
21 21

  
22
import org.distorted.helpers.MovesFinished;
22 23
import org.distorted.library.message.EffectListener;
23 24
import org.distorted.main.RubikPreRender;
24 25
import org.distorted.objects.TwistyObject;
......
27 28

  
28 29
public interface EffectController extends EffectListener
29 30
  {
30
  void addRotation(RubikPreRender.ActionFinishedListener listener, int axis, int rowBitmap, int angle, long duration);
31
  void addRotation(MovesFinished listener, int axis, int rowBitmap, int angle, long duration);
31 32
  TwistyObject getOldObject();
32 33
  TwistyObject getObject();
33 34
  int getNumScrambles();

Also available in: Unified diff