Revision 36f6390b
Added by Leszek Koltunski over 1 year ago
src/main/java/org/distorted/objectlib/main/ObjectPreRender.java | ||
---|---|---|
645 | 645 |
|
646 | 646 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
647 | 647 |
|
648 |
public void scrambleObject(int num)
|
|
648 |
public boolean scrambleObject(int num)
|
|
649 | 649 |
{ |
650 | 650 |
if( !mScramblingAndSolvingBlocked ) |
651 | 651 |
{ |
... | ... | |
653 | 653 |
mScrambleObjectNum = num; |
654 | 654 |
mDebug = ""; |
655 | 655 |
mScrambleStartTime = System.currentTimeMillis(); |
656 |
return true; |
|
656 | 657 |
} |
658 |
return false; |
|
657 | 659 |
} |
658 | 660 |
|
659 | 661 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
660 | 662 |
|
661 |
public void fastScrambleObject(int duration, int num)
|
|
663 |
public boolean fastScrambleObject(int duration, int num)
|
|
662 | 664 |
{ |
663 | 665 |
if( !mScramblingAndSolvingBlocked ) |
664 | 666 |
{ |
... | ... | |
667 | 669 |
mScrambleObjectDuration = duration; |
668 | 670 |
mDebug = ""; |
669 | 671 |
mScrambleStartTime = System.currentTimeMillis(); |
672 |
return true; |
|
670 | 673 |
} |
674 |
return false; |
|
671 | 675 |
} |
672 | 676 |
|
673 | 677 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
still return the right value in case of slow and fast scrambling.