Project

General

Profile

« Previous | Next » 

Revision b0a2ce63

Added by Leszek Koltunski about 5 years ago

Connect the dialog values to RubikRenderer.

View differences:

src/main/java/org/distorted/effect/DisappearEffect.java
49 49
    }
50 50

  
51 51
  public static final int NUM_EFFECTS = Type.values().length;
52
  private static final Type[] types;
53

  
54
  static
55
    {
56
    int i=0;
57

  
58
    types = new Type[NUM_EFFECTS];
59

  
60
    for(Type type: Type.values())
61
      {
62
      types[i] = type;
63
      i++;
64
      }
65
    }
66

  
52 67
  private final int FAKE_EFFECT_ID = -2;
53 68

  
54 69
  private int mCubeEffectNumber, mCubeEffectFinished, mCubeEffectReturned;
......
71 86

  
72 87
  abstract int createEffects(int duration);
73 88

  
89
///////////////////////////////////////////////////////////////////////////////////////////////////
90

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

  
74 96
///////////////////////////////////////////////////////////////////////////////////////////////////
75 97

  
76 98
  public void effectMessage(final EffectMessage em, final long effectID, final long objectID)

Also available in: Unified diff