Project

General

Profile

« Previous | Next » 

Revision a57e6870

Added by Leszek Koltunski over 2 years ago

make numLayers into an int[] (preparation for Cuboids)
Caution: because of previous changes to cubit order in cube, the Solver is broken!

View differences:

src/main/java/org/distorted/objectlib/objects/TwistyBandagedEvil.java
35 35

  
36 36
public class TwistyBandagedEvil extends TwistyBandagedAbstract
37 37
{
38
  public TwistyBandagedEvil(int size, Static4D quat, Static3D move, DistortedTexture texture, MeshSquare mesh,
38
  public TwistyBandagedEvil(int[] numL, Static4D quat, Static3D move, DistortedTexture texture, MeshSquare mesh,
39 39
                            DistortedEffects effects, Resources res, int scrWidth)
40 40
    {
41
    super(size, quat, move, texture, mesh, effects, res, scrWidth);
41
    super(numL, quat, move, texture, mesh, effects, res, scrWidth);
42 42
    }
43 43

  
44 44
///////////////////////////////////////////////////////////////////////////////////////////////////
......
201 201

  
202 202
///////////////////////////////////////////////////////////////////////////////////////////////////
203 203

  
204
  protected int getResource(int numLayers)
204
  protected int getResource(int[] numLayers)
205 205
    {
206 206
    return R.raw.ban4;
207 207
    }
......
247 247
///////////////////////////////////////////////////////////////////////////////////////////////////
248 248
// PUBLIC API
249 249

  
250
  public ObjectType intGetObjectType(int numLayers)
250
  public ObjectType intGetObjectType(int[] numLayers)
251 251
    {
252 252
    return ObjectType.BAN4_3;
253 253
    }
254 254

  
255 255
///////////////////////////////////////////////////////////////////////////////////////////////////
256 256

  
257
  public int getObjectName(int numLayers)
257
  public int getObjectName(int[] numLayers)
258 258
    {
259 259
    return R.string.bandaged_evil;
260 260
    }
261 261

  
262 262
///////////////////////////////////////////////////////////////////////////////////////////////////
263 263

  
264
  public int getInventor(int numLayers)
264
  public int getInventor(int[] numLayers)
265 265
    {
266 266
    return R.string.bandaged_evil_inventor;
267 267
    }
268 268

  
269 269
///////////////////////////////////////////////////////////////////////////////////////////////////
270 270

  
271
  public int getComplexity(int numLayers)
271
  public int getComplexity(int[] numLayers)
272 272
    {
273 273
    return 8;
274 274
    }

Also available in: Unified diff