Revision da57afae
Added by Leszek Koltunski about 1 year ago
src/main/java/org/distorted/solvers/SolverPyraminxDiamond.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; |
... | ... | |
46 | 47 |
|
47 | 48 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
48 | 49 |
|
49 |
public SolverPyraminxDiamond(Resources res, TwistyObject object) |
|
50 |
public SolverPyraminxDiamond(OperatingSystemInterface os, Resources res, TwistyObject object)
|
|
50 | 51 |
{ |
51 |
super(res,object); |
|
52 |
super(os,res,object);
|
|
52 | 53 |
mFaceColors = new int[8]; |
53 | 54 |
} |
54 | 55 |
|
... | ... | |
361 | 362 |
|
362 | 363 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
363 | 364 |
|
364 |
public int[][] solution(int index, Resources res)
|
|
365 |
public int[][] solution(int index, OperatingSystemInterface os)
|
|
365 | 366 |
{ |
366 | 367 |
if( mSolver==null ) |
367 | 368 |
{ |
368 |
mSolver = ImplementedTablebasesList.createPacked(res,ObjectSignatures.PDIA_3);
|
|
369 |
mSolver = ImplementedTablebasesList.createPacked(os,ObjectSignatures.PDIA_3);
|
|
369 | 370 |
} |
370 | 371 |
|
371 | 372 |
return mSolver!=null ? mSolver.solution(index,null) : null; |
Also available in: Unified diff
Move opening local files to the OSInterface