Project

General

Profile

« Previous | Next » 

Revision 61aa85e4

Added by Leszek Koltunski over 2 years ago

Simplify ObjectList: now there's just one object per size.

View differences:

src/main/java/org/distorted/objectlib/objects/TwistyDiamond.java
71 71
  public TwistyDiamond(int size, Static4D quat, DistortedTexture texture, MeshSquare mesh,
72 72
                       DistortedEffects effects, int[][] moves, Resources res, int scrWidth)
73 73
    {
74
    super(size, size, quat, texture, mesh, effects, moves, ObjectList.DIAM, res, scrWidth);
74
    super(size, size, quat, texture, mesh, effects, moves, res, scrWidth);
75 75
    }
76 76

  
77 77
///////////////////////////////////////////////////////////////////////////////////////////////////
......
536 536
    return mBasicAngle;
537 537
    }
538 538

  
539
///////////////////////////////////////////////////////////////////////////////////////////////////
540

  
541
  public ObjectList intGetObjectList(int numLayers)
542
    {
543
    switch(numLayers)
544
      {
545
      case 2: return ObjectList.DIAM_2;
546
      case 3: return ObjectList.DIAM_3;
547
      case 4: return ObjectList.DIAM_4;
548
      }
549

  
550
    return ObjectList.DIAM_2;
551
    }
552

  
539 553
///////////////////////////////////////////////////////////////////////////////////////////////////
540 554

  
541 555
  public int getObjectName(int numLayers)

Also available in: Unified diff