Revision da57afae
Added by Leszek Koltunski about 1 year ago
src/main/java/org/distorted/solvers/SolverPyraminx.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; |
... | ... | |
245 | 246 |
|
246 | 247 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
247 | 248 |
|
248 |
public SolverPyraminx(Resources res, TwistyObject object) |
|
249 |
public SolverPyraminx(OperatingSystemInterface os, Resources res, TwistyObject object)
|
|
249 | 250 |
{ |
250 |
super(res,object); |
|
251 |
super(os,res,object);
|
|
251 | 252 |
} |
252 | 253 |
|
253 | 254 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
535 | 536 |
|
536 | 537 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
537 | 538 |
|
538 |
public int[][] solution(int index, Resources res)
|
|
539 |
public int[][] solution(int index, OperatingSystemInterface os)
|
|
539 | 540 |
{ |
540 | 541 |
if( mSolver==null ) |
541 | 542 |
{ |
542 |
mSolver = ImplementedTablebasesList.createPacked(res, ObjectSignatures.PYRA_3);
|
|
543 |
mSolver = ImplementedTablebasesList.createPacked(os, ObjectSignatures.PYRA_3);
|
|
543 | 544 |
} |
544 | 545 |
|
545 | 546 |
return mSolver!=null ? mSolver.solution(index,mCornerTwist) : null; |
Also available in: Unified diff
Move opening local files to the OSInterface