Project

General

Profile

« Previous | Next » 

Revision 91792184

Added by Leszek Koltunski over 2 years ago

Make object scrambling abstract (well, almost - with exception of Square-1 - this theoretically could also be done the generic way, but this would require almost 20000 'ScrambleStates')

View differences:

src/main/java/org/distorted/objects/TwistyBandagedFused.java
36 36
                      DistortedEffects effects, int[][] moves, Resources res, int scrWidth)
37 37
    {
38 38
    super(size, quat, texture, mesh, effects, moves, ObjectList.BAN1, res, scrWidth);
39
    }
39 40

  
40
    int[] tmp = {0,-1,0, 0,1,0, 0,2,0, 2,-1,0, 2,1,0, 2,2,0};
41
///////////////////////////////////////////////////////////////////////////////////////////////////
41 42

  
42
    mStates = new ScrambleState[]
43
  ScrambleState[] getScrambleStates()
44
    {
45
    if( mStates==null )
43 46
      {
44
      new ScrambleState( new int[][] {tmp,tmp,tmp} )
45
      };
47
      int[] tmp = {0,-1,0, 0,1,0, 0,2,0, 2,-1,0, 2,1,0, 2,2,0};
48

  
49
      mStates = new ScrambleState[]
50
        {
51
        new ScrambleState( new int[][] {tmp,tmp,tmp} )
52
        };
53
      }
54

  
55
    return mStates;
46 56
    }
47 57

  
48 58
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff