Project

General

Profile

« Previous | Next » 

Revision beee90ab

Added by Leszek Koltunski about 2 years ago

Preparation for Mixup Cube: take advantage of the recent bump in MAJOR_VERSION number and change the format of basicAngles to int[][] 'per-axis-per-layer' [ Mixup Cube has different basicAngle in its middle layers (8) - and different in its edge layers (4) ]

View differences:

src/main/java/org/distorted/objectlib/objects/TwistyTrajber.java
50 50
         };
51 51

  
52 52
  private ScrambleState[] mStates;
53
  private int[] mBasicAngle;
53
  private int[][] mBasicAngle;
54 54
  private float[][] mCuts;
55 55
  private float[][] mPositions;
56 56
  private int[] mQuatIndex;
......
588 588

  
589 589
///////////////////////////////////////////////////////////////////////////////////////////////////
590 590

  
591
  public int[] getBasicAngles()
591
  public int[][] getBasicAngles()
592 592
    {
593
    if( mBasicAngle ==null ) mBasicAngle = new int[] { 4,4,4 };
593
    if( mBasicAngle ==null )
594
      {
595
      int num = getNumLayers()[0];
596
      int[] tmp = new int[num];
597
      for(int i=0; i<num; i++) tmp[i] = 4;
598
      mBasicAngle = new int[][] { tmp,tmp,tmp };
599
      }
600

  
594 601
    return mBasicAngle;
595 602
    }
596 603

  

Also available in: Unified diff