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/SolveEffect.java
88 88
    mNodeEffects        = new Effect[NUM_PHASES][];
89 89
    }
90 90

  
91
///////////////////////////////////////////////////////////////////////////////////////////////////
92

  
93
  public static Type getType(int ordinal)
94
    {
95
    return types[ordinal];
96
    }
97

  
98 91
///////////////////////////////////////////////////////////////////////////////////////////////////
99 92

  
100 93
  public static String[] getNames()
......
111 104

  
112 105
///////////////////////////////////////////////////////////////////////////////////////////////////
113 106

  
114
  public static SolveEffect create(Type type) throws InstantiationException, IllegalAccessException
107
  public static SolveEffect create(int ordinal) throws InstantiationException, IllegalAccessException
115 108
    {
116
    return type.effect.newInstance();
109
    return types[ordinal].effect.newInstance();
117 110
    }
118 111

  
119 112
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff