Project

General

Profile

« Previous | Next » 

Revision f0450fcc

Added by Leszek Koltunski about 3 years ago

Change Cubit.mRotationRow[] from an index pointing at a single rotating layer to a bitmap potentially pointing at several layers.
(in preparation for bandaged objects)

View differences:

src/main/java/org/distorted/objects/TwistyCube.java
215 215

  
216 216
  int getFaceColor(int cubit, int cubitface, int size)
217 217
    {
218
    return CUBITS[cubit].mRotationRow[cubitface/2] == (cubitface%2==0 ? size-1:0) ? cubitface : NUM_FACES;
218
    return CUBITS[cubit].mRotationRow[cubitface/2] == (cubitface%2==0 ? 1<<(size-1):1) ? cubitface : NUM_FACES;
219 219
    }
220 220

  
221 221
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff