Revision 584f7954
Added by Leszek Koltunski over 6 years ago
| src/main/java/org/distorted/effect/UnscrambleEffectNone.java | ||
|---|---|---|
| 21 | 21 |  | 
| 22 | 22 | /////////////////////////////////////////////////////////////////////////////////////////////////// | 
| 23 | 23 |  | 
| 24 | import org.distorted.library.effect.Effect; | |
| 25 | import org.distorted.library.effect.MatrixEffectMove; | |
| 26 | import org.distorted.library.type.Dynamic3D; | |
| 27 | import org.distorted.library.type.Static3D; | |
| 28 |  | |
| 24 | 29 | public class UnscrambleEffectNone extends UnscrambleEffect | 
| 25 | 30 |   {
 | 
| 31 | public void createEffects(int duration) | |
| 32 |     {
 | |
| 33 | Dynamic3D d0 = new Dynamic3D(1,0.5f); | |
| 34 | d0.add(new Static3D(0,0,0)); | |
| 35 |  | |
| 36 |     mCubeEffectPositionBefore = new int[] {-1};
 | |
| 37 | mCubeEffectsBefore = new Effect[mCubeEffectPositionBefore.length]; | |
| 38 | mCubeEffectsBefore[0] = new MatrixEffectMove(d0); | |
| 39 |  | |
| 40 |     mCubeEffectPositionAfter  = new int[] {-1};
 | |
| 41 | mCubeEffectsAfter = new Effect[mCubeEffectPositionAfter.length]; | |
| 42 | mCubeEffectsAfter[0] = new MatrixEffectMove(d0); | |
| 43 | } | |
| 44 |  | |
| 45 | /////////////////////////////////////////////////////////////////////////////////////////////////// | |
| 46 | // Enable all effects used in this Effect. Called by reflection from the parent class. | |
| 47 |  | |
| 48 |   @SuppressWarnings("unused")
 | |
| 49 | static void enable() | |
| 50 |     {
 | |
| 26 | 51 |  | 
| 52 | } | |
| 27 | 53 | } | 
Also available in: Unified diff
- adjust SizeChangeEffects
- implement first two UnscrambleEffects