Revision da57afae
Added by Leszek Koltunski about 1 year ago
src/main/java/org/distorted/solvers/SolverCuboid232.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; |
... | ... | |
222 | 223 |
|
223 | 224 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
224 | 225 |
|
225 |
public SolverCuboid232(Resources res, TwistyObject object) |
|
226 |
public SolverCuboid232(OperatingSystemInterface os, Resources res, TwistyObject object)
|
|
226 | 227 |
{ |
227 |
super(res,object); |
|
228 |
super(os,res,object);
|
|
228 | 229 |
mFaceColors = new int[6]; |
229 | 230 |
} |
230 | 231 |
|
... | ... | |
404 | 405 |
|
405 | 406 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
406 | 407 |
|
407 |
public int[][] solution(int index, Resources res)
|
|
408 |
public int[][] solution(int index, OperatingSystemInterface os)
|
|
408 | 409 |
{ |
409 | 410 |
if( mSolver==null ) |
410 | 411 |
{ |
411 |
mSolver = ImplementedTablebasesList.createPacked(res, ObjectSignatures.CU_232);
|
|
412 |
mSolver = ImplementedTablebasesList.createPacked(os, ObjectSignatures.CU_232);
|
|
412 | 413 |
} |
413 | 414 |
|
414 | 415 |
return mSolver!=null ? mSolver.solution(index,null) : null; |
Also available in: Unified diff
Move opening local files to the OSInterface