Project

General

Profile

« Previous | Next » 

Revision 42772cff

Added by Leszek Koltunski over 4 years ago

RubikCube: major progress with a separate RubikSettingsEnum enum - has been introduced into RubikActivity & RubikRenderer.

View differences:

src/main/java/org/distorted/effect/ScrambleEffect.java
83 83
    mLastVector = -1;
84 84
    }
85 85

  
86
///////////////////////////////////////////////////////////////////////////////////////////////////
87

  
88
  public static Type getType(int ordinal)
89
    {
90
    return types[ordinal];
91
    }
92

  
93 86
///////////////////////////////////////////////////////////////////////////////////////////////////
94 87

  
95 88
  public static String[] getNames()
......
106 99

  
107 100
///////////////////////////////////////////////////////////////////////////////////////////////////
108 101

  
109
  public static ScrambleEffect create(Type type) throws InstantiationException, IllegalAccessException
102
  public static ScrambleEffect create(int ordinal) throws InstantiationException, IllegalAccessException
110 103
    {
111
    return type.effect.newInstance();
104
    return types[ordinal].effect.newInstance();
112 105
    }
113 106

  
114 107
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff