Project

General

Profile

« Previous | Next » 

Revision 85b09df4

Added by Leszek Koltunski about 4 years ago

Reorganize UI of the Play state.

View differences:

src/main/java/org/distorted/main/RubikPostRender.java
361 361

  
362 362
///////////////////////////////////////////////////////////////////////////////////////////////////
363 363

  
364
  void scrambleObject(int num)
364
  void setTextureMap(int cubit, int face, int newColor)
365 365
    {
366
    if( mCanPlay )
367
      {
368
      mScrambleObject = true;
369
      mScrambleObjectNum = num;
370
      }
371
    }
372

  
373
///////////////////////////////////////////////////////////////////////////////////////////////////
366
    mSetTextureMap = true;
374 367

  
375
  void solveObject()
376
    {
377
    if( mCanPlay )
378
      {
379
      mSolveObject = true;
380
      }
368
    mCubit    = cubit;
369
    mFace     = face;
370
    mNewColor = newColor;
381 371
    }
382 372

  
383 373
///////////////////////////////////////////////////////////////////////////////////////////////////
......
451 441

  
452 442
///////////////////////////////////////////////////////////////////////////////////////////////////
453 443

  
454
  void setTextureMap(int cubit, int face, int newColor)
444
  public void scrambleObject(int num)
455 445
    {
456
    mSetTextureMap = true;
446
    if( mCanPlay )
447
      {
448
      mScrambleObject = true;
449
      mScrambleObjectNum = num;
450
      }
451
    }
457 452

  
458
    mCubit    = cubit;
459
    mFace     = face;
460
    mNewColor = newColor;
453
///////////////////////////////////////////////////////////////////////////////////////////////////
454

  
455
  public void solveObject()
456
    {
457
    if( mCanPlay )
458
      {
459
      mSolveObject = true;
460
      }
461 461
    }
462 462

  
463 463
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff