Revision 4e1dc313
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/objectlib/objects/TwistyCube.java | ||
---|---|---|
104 | 104 |
return mStates; |
105 | 105 |
} |
106 | 106 |
|
107 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
108 |
|
|
109 |
protected int getResource(int numLayers) |
|
110 |
{ |
|
111 |
switch(numLayers) |
|
112 |
{ |
|
113 |
case 2: return R.raw.cube2; |
|
114 |
case 3: return R.raw.cube3; |
|
115 |
case 4: return R.raw.cube4; |
|
116 |
case 5: return R.raw.cube5; |
|
117 |
} |
|
118 |
|
|
119 |
return 0; |
|
120 |
} |
|
121 |
|
|
107 | 122 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
108 | 123 |
|
109 | 124 |
private int[] createEdges(int size, int vertex) |
Also available in: Unified diff
move the resourceIDs from ObjectList to individual object classes.