Project

General

Profile

« Previous | Next » 

Revision a31d25de

Added by Leszek Koltunski about 4 years ago

Major progress with Prretty Patterns.

Two things remain:

1) looks like sometimes making/backing Moves in a Pattern gets stuck. ( Pattern.mCanRotate! )
2) we need to add RubikPatternList!

View differences:

src/main/java/org/distorted/magic/RubikPostRender.java
54 54
  private long mNewRecord;
55 55
  private int mScreenWidth, mScreenHeight;
56 56
  private SharedPreferences mPreferences;
57
  private String mNextMoves;
57
  private int[][] mNextMoves;
58 58
  private RubikObject mOldObject, mNewObject;
59 59
  private int mScrambleObjectNum;
60 60
  private int mAddRotationAxis, mAddRotationRowBitmap, mAddRotationAngle;
......
92 92

  
93 93
///////////////////////////////////////////////////////////////////////////////////////////////////
94 94

  
95
  private void createObjectNow(RubikObjectList object, int size, String moves)
95
  private void createObjectNow(RubikObjectList object, int size, int[][] moves)
96 96
    {
97 97
    boolean firstTime = (mNewObject==null);
98 98

  
......
161 161
          }
162 162
        }
163 163

  
164
android.util.Log.e("post", "1 canDrag true");
165

  
166 164
      mCanDrag   = true;
167 165
      mCanRotate = false;
168 166
      mCanUI     = false;
......
312 310

  
313 311
///////////////////////////////////////////////////////////////////////////////////////////////////
314 312

  
315
  void changeObject(RubikObjectList object, int size, String moves)
313
  void changeObject(RubikObjectList object, int size, int[][] moves)
316 314
    {
317 315
    if( size>0 )
318 316
      {

Also available in: Unified diff