Project

General

Profile

« Previous | Next » 

Revision cdd6333d

Added by Leszek Koltunski almost 8 years ago

Move the 'Save' effect to the Application and remove the 'OTHER' effect queue

View differences:

src/main/java/org/distorted/library/Distorted.java
448 448
    return EffectQueue.getMax(EffectTypes.FRAGMENT.ordinal());
449 449
    }
450 450

  
451
///////////////////////////////////////////////////////////////////////////////////////////////////
452
/**
453
 * Returns the maximum number of Other effects.
454
 *
455
 * @return The maximum number of Other effects
456
 */
457
  public static int getMaxOther()
458
    {
459
    return EffectQueue.getMax(EffectTypes.OTHER.ordinal());
460
    }
461

  
462 451
///////////////////////////////////////////////////////////////////////////////////////////////////
463 452
/**
464 453
 * Sets the maximum number of Matrix effects that can be applied to a single DistortedObject at one time.
......
513 502
    return EffectQueue.setMax(EffectTypes.FRAGMENT.ordinal(),max);
514 503
    }
515 504

  
516
///////////////////////////////////////////////////////////////////////////////////////////////////
517
/**
518
 * Sets the maximum number of Other effects that can be applied to a single DistortedObject at one time.
519
 * This can fail if the value of 'max' is outside permitted range.
520
 *
521
 * @param max new maximum number of simultaneous Other Effects. Has to be a non-negative number not greater
522
 *            than Byte.MAX_VALUE
523
 * @return <code>true</code> if operation was successful, <code>false</code> otherwise.
524
 */
525
  public static boolean setMaxOther(int max)
526
    {
527
    return EffectQueue.setMax(EffectTypes.OTHER.ordinal(),max);
528
    }
529

  
530 505
///////////////////////////////////////////////////////////////////////////////////////////////////
531 506
//end of file  
532 507
}

Also available in: Unified diff