Project

General

Profile

« Previous | Next » 

Revision efa81f0c

Added by Leszek Koltunski over 2 years ago

Introduce abstract 4,6,8 adn 12 classes.

View differences:

src/main/java/org/distorted/objects/TwistyMinx.java
31 31

  
32 32
///////////////////////////////////////////////////////////////////////////////////////////////////
33 33

  
34
abstract class TwistyMinx extends TwistyObject
34
abstract class TwistyMinx extends Twisty12
35 35
{
36
  private static final int FACES_PER_CUBIT =6;
37

  
38 36
  static final int NUM_CORNERS = 20;
39 37
  static final int NUM_CENTERS = 12;
40 38
  static final int NUM_EDGES   = 30;
......
59 57
           new Static3D( SIN54/LEN,    0     ,   -C2/LEN )
60 58
         };
61 59

  
62
  static final int MINX_LGREEN = 0xff53aa00;
63
  static final int MINX_PINK   = 0xfffd7ab7;
64
  static final int MINX_SANDY  = 0xffefd48b;
65
  static final int MINX_LBLUE  = 0xff00a2d7;
66
  static final int MINX_ORANGE = 0xffff6200;
67
  static final int MINX_VIOLET = 0xff7d59a4;
68
  static final int MINX_DGREEN = 0xff007a47;
69
  static final int MINX_DRED   = 0xffbd0000;
70
  static final int MINX_DBLUE  = 0xff1a29b2;
71
  static final int MINX_DYELLOW= 0xffffc400;
72
  static final int MINX_WHITE  = 0xffffffff;
73
  static final int MINX_GREY   = 0xff727c7b;
74

  
75
  static final int[] FACE_COLORS = new int[]
76
         {
77
           MINX_LGREEN, MINX_PINK   , MINX_SANDY , MINX_LBLUE,
78
           MINX_ORANGE, MINX_VIOLET , MINX_DGREEN, MINX_DRED ,
79
           MINX_DBLUE , MINX_DYELLOW, MINX_WHITE , MINX_GREY
80
         };
81

  
82 60
  private ScrambleState[] mStates;
83 61
  private int[] mBasicAngle;
84 62
  private int[] mFaceMap;
......
527 505
    return mQuats;
528 506
    }
529 507

  
530
///////////////////////////////////////////////////////////////////////////////////////////////////
531

  
532
  int getNumFaceColors()
533
    {
534
    return FACE_COLORS.length;
535
    }
536

  
537 508
///////////////////////////////////////////////////////////////////////////////////////////////////
538 509

  
539 510
  int getSolvedFunctionIndex()
......
541 512
    return 0;
542 513
    }
543 514

  
544
///////////////////////////////////////////////////////////////////////////////////////////////////
545

  
546
  boolean shouldResetTextureMaps()
547
    {
548
    return false;
549
    }
550

  
551 515
///////////////////////////////////////////////////////////////////////////////////////////////////
552 516

  
553 517
  int getNumCubitFaces()
554 518
    {
555
    return FACES_PER_CUBIT;
556
    }
557

  
558
///////////////////////////////////////////////////////////////////////////////////////////////////
559

  
560
  float returnMultiplier()
561
    {
562
    return 2.0f;
519
    return 6;
563 520
    }
564 521

  
565 522
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff