Revision ce366b42
Added by Leszek Koltunski about 3 years ago
src/main/java/org/distorted/objects/TwistyBandagedAbstract.java | ||
---|---|---|
314 | 314 |
return reaches ? stickerIndex*NUM_FACES + face : NUM_STICKERS*NUM_FACES; |
315 | 315 |
} |
316 | 316 |
|
317 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
318 |
|
|
319 |
int computeBitmapFromRow(int rowBitmap, int axis) |
|
320 |
{ |
|
321 |
int bitmap, initBitmap=0; |
|
322 |
|
|
323 |
while( initBitmap!=rowBitmap ) |
|
324 |
{ |
|
325 |
initBitmap = rowBitmap; |
|
326 |
|
|
327 |
for(int cubit=0; cubit<NUM_CUBITS; cubit++) |
|
328 |
{ |
|
329 |
bitmap = CUBITS[cubit].mRotationRow[axis]; |
|
330 |
if( (rowBitmap & bitmap) != 0 ) rowBitmap |= bitmap; |
|
331 |
} |
|
332 |
} |
|
333 |
|
|
334 |
return rowBitmap; |
|
335 |
} |
|
336 |
|
|
317 | 337 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
318 | 338 |
|
319 | 339 |
float returnMultiplier() |
Also available in: Unified diff
Make manual scrambling work.