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/TwistyPyraminx.java
192 192

  
193 193
  private int faceColor(int cubit, int axis)
194 194
    {
195
    return CUBITS[cubit].mRotationRow[axis] == 0 ? axis : NUM_FACES;
195
    return CUBITS[cubit].mRotationRow[axis] == 1 ? axis : NUM_FACES;
196 196
    }
197 197

  
198 198
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff