Revision 211b48f2
Added by Leszek Koltunski over 4 years ago
src/main/java/org/distorted/magic/RubikRenderer.java | ||
---|---|---|
30 | 30 |
import org.distorted.library.mesh.MeshFlat; |
31 | 31 |
import org.distorted.library.message.EffectListener; |
32 | 32 |
import org.distorted.object.RubikCube; |
33 |
import org.distorted.uistate.RubikState; |
|
34 |
import org.distorted.uistate.RubikStatePlay; |
|
33 | 35 |
|
34 | 36 |
import javax.microedition.khronos.egl.EGLConfig; |
35 | 37 |
import javax.microedition.khronos.opengles.GL10; |
... | ... | |
82 | 84 |
mEffectID = new long[BaseEffect.Type.LENGTH]; |
83 | 85 |
|
84 | 86 |
mMesh= new MeshFlat(20,20); |
85 |
mNextCubeSize = RubikSize.getSize(RubikSurfaceView.getRedButton()).getCubeSize(); |
|
87 |
|
|
88 |
RubikStatePlay play = (RubikStatePlay) RubikState.PLAY.getStateClass(); |
|
89 |
int size = play.getButton(); |
|
90 |
mNextCubeSize = RubikSize.getSize(size).getCubeSize(); |
|
86 | 91 |
} |
87 | 92 |
|
88 | 93 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Separate the States (and also Dialogues) into their own package.