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/TwistySquare1.java
50 50
  public TwistySquare1(int size, Static4D quat, DistortedTexture texture, MeshSquare mesh,
51 51
                       DistortedEffects effects, int[][] moves, Resources res, int scrWidth)
52 52
    {
53
    super(size, quat, texture, mesh, effects, moves, ObjectList.SQU1, res, scrWidth);
53
    super(size, quat, texture, mesh, effects, moves, res, scrWidth);
54 54
    }
55 55

  
56 56
///////////////////////////////////////////////////////////////////////////////////////////////////
......
350 350
///////////////////////////////////////////////////////////////////////////////////////////////////
351 351
// PUBLIC API
352 352

  
353
  public ObjectList intGetObjectList(int numLayers)
354
    {
355
    return ObjectList.SQU1_3;
356
    }
357

  
358
///////////////////////////////////////////////////////////////////////////////////////////////////
359

  
353 360
  public int getObjectName(int numLayers)
354 361
    {
355 362
    return R.string.squa1;

Also available in: Unified diff