Project

General

Profile

« Previous | Next » 

Revision 4844152a

Added by Leszek Koltunski over 2 years ago

Bandaged 3x3: just-in-time scrambling.

View differences:

src/main/java/org/distorted/bandaged/BandagedPlayScreen.java
29 29
import org.distorted.helpers.TransparentImageButton;
30 30
import org.distorted.main.R;
31 31
import org.distorted.objectlib.main.ObjectControl;
32
import org.distorted.objectlib.main.TwistyObject;
33
import org.distorted.objectlib.scrambling.ObjectScrambler;
32 34

  
33 35
///////////////////////////////////////////////////////////////////////////////////////////////////
34 36

  
......
100 102
      @Override
101 103
      public void onClick(View v)
102 104
        {
103
        act.getControl().scrambleObject(NUM_SCRAMBLES);
105
        ObjectControl control = act.getControl();
106
        TwistyObject object = control.getObject();
107
        ObjectScrambler.setSignature(object.getSignature());
108
        control.scrambleObject(NUM_SCRAMBLES);
104 109
        }
105 110
      });
106 111
    }

Also available in: Unified diff