Revision da57afae
Added by Leszek Koltunski about 1 year ago
src/main/java/org/distorted/solvers/SolverIvyCube.java | ||
---|---|---|
12 | 12 |
import android.content.res.Resources; |
13 | 13 |
|
14 | 14 |
import org.distorted.main.R; |
15 |
import org.distorted.objectlib.helpers.OperatingSystemInterface; |
|
15 | 16 |
import org.distorted.objectlib.main.ObjectSignatures; |
16 | 17 |
import org.distorted.objectlib.main.TwistyObject; |
17 | 18 |
import org.distorted.objectlib.tablebases.ImplementedTablebasesList; |
... | ... | |
172 | 173 |
|
173 | 174 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
174 | 175 |
|
175 |
public SolverIvyCube(Resources res, TwistyObject object) |
|
176 |
public SolverIvyCube(OperatingSystemInterface os, Resources res, TwistyObject object)
|
|
176 | 177 |
{ |
177 |
super(res,object); |
|
178 |
super(os,res,object);
|
|
178 | 179 |
} |
179 | 180 |
|
180 | 181 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
240 | 241 |
|
241 | 242 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
242 | 243 |
|
243 |
public int[][] solution(int index, Resources res)
|
|
244 |
public int[][] solution(int index, OperatingSystemInterface os)
|
|
244 | 245 |
{ |
245 | 246 |
if( mSolver==null ) |
246 | 247 |
{ |
247 |
mSolver = ImplementedTablebasesList.createPacked(res, ObjectSignatures.IVY_2);
|
|
248 |
mSolver = ImplementedTablebasesList.createPacked(os, ObjectSignatures.IVY_2);
|
|
248 | 249 |
} |
249 | 250 |
|
250 | 251 |
return mSolver!=null ? mSolver.solution(index,null) : null; |
Also available in: Unified diff
Move opening local files to the OSInterface