Revision da57afae
Added by Leszek Koltunski about 1 year ago
src/main/java/org/distorted/solvers/SolverSkewb.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.tablebases.ImplementedTablebasesList; |
... | ... | |
51 | 52 |
|
52 | 53 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
53 | 54 |
|
54 |
public SolverSkewb(Resources res, TwistyObject object) |
|
55 |
public SolverSkewb(OperatingSystemInterface os, Resources res, TwistyObject object)
|
|
55 | 56 |
{ |
56 |
super(res,object); |
|
57 |
super(os,res,object);
|
|
57 | 58 |
mFaceColors = new int[6]; |
58 | 59 |
} |
59 | 60 |
|
... | ... | |
384 | 385 |
|
385 | 386 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
386 | 387 |
|
387 |
public int[][] solution(int index, Resources res)
|
|
388 |
public int[][] solution(int index, OperatingSystemInterface os)
|
|
388 | 389 |
{ |
389 | 390 |
if( mSolver==null ) |
390 | 391 |
{ |
391 |
mSolver = ImplementedTablebasesList.createPacked(res,ObjectSignatures.SKEW_2);
|
|
392 |
mSolver = ImplementedTablebasesList.createPacked(os,ObjectSignatures.SKEW_2);
|
|
392 | 393 |
} |
393 | 394 |
|
394 | 395 |
return mSolver!=null ? mSolver.solution(index,null) : null; |
Also available in: Unified diff
Move opening local files to the OSInterface