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/TwistyMirror.java
89 89
  public TwistyMirror(int size, Static4D quat, DistortedTexture texture, MeshSquare mesh,
90 90
                      DistortedEffects effects, int[][] moves, Resources res, int scrWidth)
91 91
    {
92
    super(size, size, quat, texture, mesh, effects, moves, ObjectList.MIRR, res, scrWidth);
92
    super(size, size, quat, texture, mesh, effects, moves, res, scrWidth);
93 93
    }
94 94

  
95 95
///////////////////////////////////////////////////////////////////////////////////////////////////
......
629 629
    return mBasicAngle;
630 630
    }
631 631

  
632
///////////////////////////////////////////////////////////////////////////////////////////////////
633

  
634
  public ObjectList intGetObjectList(int numLayers)
635
    {
636
    switch(numLayers)
637
      {
638
      case 2: return ObjectList.MIRR_2;
639
      case 3: return ObjectList.MIRR_3;
640
      }
641

  
642
    return ObjectList.MIRR_2;
643
    }
644

  
632 645
///////////////////////////////////////////////////////////////////////////////////////////////////
633 646

  
634 647
  public int getObjectName(int numLayers)

Also available in: Unified diff