Project

General

Profile

« Previous | Next » 

Revision a396a7e1

Added by Leszek Koltunski over 1 year ago

calls to FastScramble and SlowScramble might fail (preRender is blocked). Return false then and if so, do not do anything in the app.

View differences:

src/main/java/org/distorted/objectlib/main/ObjectControl.java
716 716
// scrambling, then lifts the finger and the act of lifting screws the scrambling - no further
717 717
// scrambles take any effect!
718 718

  
719
    public void scrambleObject(int num)
719
    public boolean scrambleObject(int num)
720 720
      {
721 721
      if( !mBeginningRotation && !mContinuingRotation )
722 722
        {
723 723
        mPreRender.scrambleObject(num);
724
        return true;
724 725
        }
726
      return false;
725 727
      }
726 728

  
727 729
///////////////////////////////////////////////////////////////////////////////////////////////////
728 730
// ditto
729 731

  
730
    public void fastScrambleObject(int duration, int num)
732
    public boolean fastScrambleObject(int duration, int num)
731 733
      {
732 734
      if( !mBeginningRotation && !mContinuingRotation )
733 735
        {
734 736
        mPreRender.fastScrambleObject(duration,num);
737
        return true;
735 738
        }
739
      return false;
736 740
      }
737 741

  
738 742
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff