Revision 2ef489e2
Added by Leszek Koltunski about 3 years ago
src/main/java/org/distorted/objects/TwistyCube.java | ||
---|---|---|
213 | 213 |
|
214 | 214 |
int getFaceColor(int cubit, int cubitface, int size) |
215 | 215 |
{ |
216 |
return CUBITS[cubit].mRotationRow[cubitface/2] == (cubitface%2==0 ? 1<<(size-1):1) ? cubitface : NUM_FACES;
|
|
216 |
return CUBITS[cubit].mRotationRow[cubitface/2] == (cubitface%2==0 ? (1<<(size-1)):1) ? cubitface : NUM_FACES;
|
|
217 | 217 |
} |
218 | 218 |
|
219 | 219 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Progress making the Diamond class support any size.