Project

General

Profile

« Previous | Next » 

Revision aa171dee

Added by Leszek Koltunski about 4 years ago

More support for actual patterns!

View differences:

src/main/java/org/distorted/object/RubikObjectList.java
245 245

  
246 246
///////////////////////////////////////////////////////////////////////////////////////////////////
247 247

  
248
  public RubikObject create(int size, Static4D quatCur, Static4D quatAcc)
248
  public RubikObject create(int size, Static4D quatCur, Static4D quatAcc, String moves)
249 249
    {
250 250
    DistortedTexture texture = new DistortedTexture();
251 251
    DistortedEffects effects = new DistortedEffects();
......
253 253

  
254 254
    switch(ordinal())
255 255
      {
256
      case 0: return new RubikCube    (size, quatCur, quatAcc, texture, mesh, effects);
257
      case 1: return new RubikPyraminx(size, quatCur, quatAcc, texture, mesh, effects);
256
      case 0: return new RubikCube    (size, quatCur, quatAcc, texture, mesh, effects, moves);
257
      case 1: return new RubikPyraminx(size, quatCur, quatAcc, texture, mesh, effects, moves);
258 258
      }
259 259

  
260 260
    return null;

Also available in: Unified diff