Project

General

Profile

« Previous | Next » 

Revision 42772cff

Added by Leszek Koltunski over 4 years ago

RubikCube: major progress with a separate RubikSettingsEnum enum - has been introduced into RubikActivity & RubikRenderer.

View differences:

src/main/java/org/distorted/magic/RubikSettings.java
44 44
  {
45 45
  public interface OnCompleteListener
46 46
    {
47
    void onComplete(int sizeP, int solvP, int scraP, int sizeT, int solvT, int scraT);
47
    void onComplete(int index, int position, int type);
48 48
    }
49 49

  
50 50
  private OnCompleteListener mListener;
......
293 293

  
294 294
    private void saveOptions()
295 295
      {
296
      mListener.onComplete(mPos[0], mPos[1], mPos[2], mType[0], mType[1], mType[2]);
296
      for (int i=0; i<RubikSettingsEnum.LENGTH; i++)
297
        {
298
        mListener.onComplete(i, mPos[i], mType[i]);
299
        }
297 300
      }
298 301

  
299 302
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff