Revision da57afae
Added by Leszek Koltunski about 1 year ago
src/main/java/org/distorted/solvers/SolverDino4.java | ||
---|---|---|
14 | 14 |
import android.content.res.Resources; |
15 | 15 |
|
16 | 16 |
import org.distorted.main.R; |
17 |
import org.distorted.objectlib.helpers.OperatingSystemInterface; |
|
17 | 18 |
import org.distorted.objectlib.main.ObjectSignatures; |
18 | 19 |
import org.distorted.objectlib.main.TwistyObject; |
19 | 20 |
import org.distorted.objectlib.shape.ShapeHexahedron; |
... | ... | |
31 | 32 |
|
32 | 33 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
33 | 34 |
|
34 |
public SolverDino4(Resources res, TwistyObject object) |
|
35 |
public SolverDino4(OperatingSystemInterface os, Resources res, TwistyObject object)
|
|
35 | 36 |
{ |
36 |
super(res,object); |
|
37 |
super(os, res,object);
|
|
37 | 38 |
} |
38 | 39 |
|
39 | 40 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
172 | 173 |
|
173 | 174 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
174 | 175 |
|
175 |
public int[][] solution(int index, Resources res)
|
|
176 |
public int[][] solution(int index, OperatingSystemInterface os)
|
|
176 | 177 |
{ |
177 | 178 |
if( mSolver==null ) |
178 | 179 |
{ |
179 |
mSolver = ImplementedTablebasesList.createPacked(res,ObjectSignatures.DIN4_3);
|
|
180 |
mSolver = ImplementedTablebasesList.createPacked(os,ObjectSignatures.DIN4_3);
|
|
180 | 181 |
} |
181 | 182 |
|
182 | 183 |
return mSolver!=null ? mSolver.solution(index,null) : null; |
Also available in: Unified diff
Move opening local files to the OSInterface