Revision bee1d997
Added by Leszek Koltunski over 4 years ago
src/main/java/org/distorted/effect/win/WinEffectNone.java | ||
---|---|---|
19 | 19 |
|
20 | 20 |
package org.distorted.effect.win; |
21 | 21 |
|
22 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
23 |
|
|
24 | 22 |
import org.distorted.library.effect.Effect; |
25 | 23 |
import org.distorted.library.effect.MatrixEffectMove; |
26 | 24 |
import org.distorted.library.type.Dynamic3D; |
27 | 25 |
import org.distorted.library.type.Static3D; |
28 | 26 |
|
29 |
public class WinEffectNone extends WinEffect |
|
30 |
{ |
|
31 |
public void createEffectsPhase0(int duration) |
|
32 |
{ |
|
33 |
Dynamic3D d0 = new Dynamic3D(1,0.5f); |
|
34 |
d0.add(new Static3D(0,0,0)); |
|
35 |
|
|
36 |
mCubeEffectPosition[0] = new int[] {-1}; |
|
37 |
mCubeEffects[0] = new Effect[mCubeEffectPosition[0].length]; |
|
38 |
mCubeEffects[0][0] = new MatrixEffectMove(d0); |
|
39 |
} |
|
40 |
|
|
41 | 27 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
42 | 28 |
|
43 |
public void createEffectsPhase1(int duration) |
|
29 |
public class WinEffectNone extends WinEffect |
|
30 |
{ |
|
31 |
public void createEffects(int duration) |
|
44 | 32 |
{ |
45 | 33 |
Dynamic3D d0 = new Dynamic3D(1,0.5f); |
46 | 34 |
d0.add(new Static3D(0,0,0)); |
47 | 35 |
|
48 |
mCubeEffectPosition[1] = new int[] {-1};
|
|
49 |
mCubeEffects[1] = new Effect[mCubeEffectPosition[1].length];
|
|
50 |
mCubeEffects[1][0] = new MatrixEffectMove(d0);
|
|
36 |
mCubeEffectPosition = new int[] {-1}; |
|
37 |
mCubeEffects = new Effect[mCubeEffectPosition.length];
|
|
38 |
mCubeEffects[0] = new MatrixEffectMove(d0);
|
|
51 | 39 |
} |
52 | 40 |
|
53 | 41 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
RubikCube: add new WinEffectGlow