Project

General

Profile

« Previous | Next » 

Revision 142c7236

Added by Leszek Koltunski about 5 years ago

Many things.

1) make the Dynamic.setDuration() able to be called AFTER the Dynamic has already been run. (and rename it to 'makeRunNowFor()' )
2) remove the automatic removal of zero Effects from EffectQueues.
3) adjust several Apps to cope with 2)
4) add post-rotation to Rubik (still not finished)

View differences:

src/main/java/org/distorted/library/message/EffectMessage.java
30 30
public enum EffectMessage 
31 31
  {
32 32
/**
33
 * The effect has been removed. This can happen if:
34
 * <ul>
35
 * <li> someone explicitly removed the effect with a call to {@link DistortedEffects#abortById(long)}
36
 *      (or one of the other 'abort' methods)
37
 * <li> the interpolation of the effect has finished and the end result is equal to the effect's unity.
38
 * </ul>    
33
 * The effect has been removed. This can happen if someone explicitly removed the effect with a call to
34
 * {@link DistortedEffects#abortById(long)} (or one of the other 'abort' methods)
39 35
 */
40 36
  EFFECT_REMOVED,
41 37
  
......
43 39
 * Interpolation of the effect has finished. 
44 40
 * <p>
45 41
 * If you set up an interpolated effect and set its Dynamic to do 3.5 interpolations of 1000 ms each
46
 * with calls to {@link org.distorted.library.type.Dynamic#setCount(float)} and {@link org.distorted.library.type.Dynamic#setDuration(long)},
42
 * with calls to {@link org.distorted.library.type.Dynamic#setCount(float)} and {@link org.distorted.library.type.Dynamic#makeRunNowFor(long)},
47 43
 * then you are going to get this message exactly once after 3.5*1000 = 3500 milliseconds when the interpolation 
48 44
 * finishes. You will never get this message if you set the effect to go on indefinitely with a call to 
49 45
 * {@link org.distorted.library.type.Dynamic#setCount(float)} where float=0.0f.

Also available in: Unified diff