Revision 4f9f99a2
Added by Leszek Koltunski over 4 years ago
src/main/java/org/distorted/magic/RubikActivity.java | ||
---|---|---|
31 | 31 |
import org.distorted.effect.BaseEffect; |
32 | 32 |
import org.distorted.library.main.DistortedLibrary; |
33 | 33 |
|
34 |
import org.distorted.network.RubikScoresDownloader; |
|
35 |
import org.distorted.object.RubikObject; |
|
34 | 36 |
import org.distorted.uistate.RubikState; |
35 | 37 |
import org.distorted.uistate.RubikStateAbstract; |
36 | 38 |
import org.distorted.uistate.RubikStatePlay; |
... | ... | |
88 | 90 |
{ |
89 | 91 |
int id = v.getId(); |
90 | 92 |
|
91 |
if( id>=0 && id<RubikSize.LENGTH )
|
|
93 |
if( id>=0 && id< RubikObject.LENGTH )
|
|
92 | 94 |
{ |
93 |
int size = RubikSize.getSize(id).getCubeSize();
|
|
95 |
int size = RubikObject.getObject(id).getObjectSize();
|
|
94 | 96 |
|
95 | 97 |
RubikSurfaceView view = findViewById(R.id.rubikSurfaceView); |
96 | 98 |
boolean success = view.getRenderer().createCube(size); |
Also available in: Unified diff
Separate the network package; rename RubikSize to RubikObject.