Revision beb325a0
Added by Leszek Koltunski over 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.magic.RubikCube;
|
|
26 |
import org.distorted.object.RubikCube;
|
|
27 | 27 |
import org.distorted.magic.RubikRenderer; |
28 | 28 |
|
29 | 29 |
import java.lang.reflect.Method; |
... | ... | |
304 | 304 |
mCube = renderer.getCube(); |
305 | 305 |
mListener = renderer; |
306 | 306 |
|
307 |
mCube.solve(); |
|
308 |
|
|
307 | 309 |
int numScrambles = renderer.getNumScrambles(); |
308 | 310 |
int dura = (int)(duration*Math.pow(numScrambles,0.6f)); |
309 | 311 |
createBaseEffects(dura,numScrambles); |
Also available in: Unified diff
Major restructuring - separate the Manipulated Objects (i.e. at the time being - Cubes of various sizes) and the class holding knowledge how those Objects move ( RubikCubeMovement ) into a separate package; remove all knowledge of Objects and the way they move from the main package.