Revision efef689c
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/effect/scramble/ScrambleEffect.java | ||
---|---|---|
23 | 23 |
import org.distorted.library.effect.Effect; |
24 | 24 |
import org.distorted.library.main.DistortedEffects; |
25 | 25 |
import org.distorted.library.message.EffectListener; |
26 |
import org.distorted.library.type.Static3D; |
|
27 | 26 |
import org.distorted.magic.RubikRenderer; |
28 | 27 |
import org.distorted.object.RubikObject; |
29 | 28 |
|
... | ... | |
52 | 51 |
private static final int FAKE_EFFECT_ID = -3; |
53 | 52 |
private static final Type[] types; |
54 | 53 |
|
55 |
private static final Static3D VECTX = new Static3D(1,0,0); |
|
56 |
private static final Static3D VECTY = new Static3D(0,1,0); |
|
57 |
private static final Static3D VECTZ = new Static3D(0,0,1); |
|
58 |
private static final Static3D VECTU = new Static3D(0,0,0); |
|
59 |
|
|
60 |
private static final Static3D[] VECTORS = { VECTX, VECTY, VECTZ, VECTZ }; |
|
61 |
|
|
62 | 54 |
static |
63 | 55 |
{ |
64 | 56 |
int i=0; |
... | ... | |
156 | 148 |
android.util.Log.e("effect", "ERROR: "+mNumDoubleScramblesLeft); |
157 | 149 |
} |
158 | 150 |
|
159 |
mCurrentBaseEffectID = mObject.addNewRotation(VECTORS[mLastVector], row, angle*90, durationMillis, this );
|
|
151 |
mCurrentBaseEffectID = mObject.addNewRotation(mLastVector, row, angle*90, durationMillis, this );
|
|
160 | 152 |
} |
161 | 153 |
else |
162 | 154 |
{ |
Also available in: Unified diff
Progress towards generalizing belongsToRotation()