1
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
2
|
// Copyright 2019 Leszek Koltunski //
|
3
|
// //
|
4
|
// This file is part of Magic Cube. //
|
5
|
// //
|
6
|
// Magic Cube is proprietary software licensed under an EULA which you should have received //
|
7
|
// along with the code. If not, check https://distorted.org/magic/License-Magic-Cube.html //
|
8
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
9
|
|
10
|
package org.distorted.objectlib.effects.scramble;
|
11
|
|
12
|
import org.distorted.library.effect.Effect;
|
13
|
import org.distorted.library.effect.MatrixEffectMove;
|
14
|
import org.distorted.library.type.Dynamic3D;
|
15
|
import org.distorted.library.type.Static3D;
|
16
|
|
17
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
18
|
|
19
|
public class ScrambleEffectNone extends ScrambleEffect
|
20
|
{
|
21
|
public void createEffects(int duration, int numScrambles)
|
22
|
{
|
23
|
Dynamic3D d0 = new Dynamic3D(1,0.5f);
|
24
|
d0.add(new Static3D(0,0,0));
|
25
|
|
26
|
mCubeEffectNumber = 1;
|
27
|
mNodeEffectNumber = 0;
|
28
|
|
29
|
mCubeEffectPosition = new int[] {-1};
|
30
|
mCubeEffects = new Effect[mCubeEffectPosition.length];
|
31
|
mCubeEffects[0] = new MatrixEffectMove(d0);
|
32
|
}
|
33
|
|
34
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
35
|
|
36
|
public void effectFinishedPlugin(final long effectID)
|
37
|
{
|
38
|
|
39
|
}
|
40
|
|
41
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
42
|
// Enable all effects used in this Effect. Called by reflection from the parent class.
|
43
|
|
44
|
@SuppressWarnings("unused")
|
45
|
static void enable()
|
46
|
{
|
47
|
|
48
|
}
|
49
|
}
|