Revision 9283a268
Added by Leszek Koltunski over 1 year ago
src/main/java/org/distorted/objectlib/scrambling/ObjectScrambler.java | ||
---|---|---|
18 | 18 |
|
19 | 19 |
public class ObjectScrambler |
20 | 20 |
{ |
21 |
public static final int SCRAMBLING_ALGORITHMS = 0; |
|
22 |
public static final int SCRAMBLING_SQUARE1 = 1; |
|
23 |
public static final int SCRAMBLING_BANDAGED = 2; |
|
24 |
public static final int SCRAMBLING_TABLEBASES = 3; |
|
25 |
|
|
21 | 26 |
private final ScrambleState[] mStates; |
22 | 27 |
private final int mType; |
23 | 28 |
private final int mNumAxis; |
... | ... | |
610 | 615 |
if( curr==0 ) initializeType2Scrambling(scramble,rnd,total,signature); |
611 | 616 |
} |
612 | 617 |
|
618 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
619 |
// TYPE 3 (tablebases) |
|
620 |
|
|
621 |
private void randomizeNewScramble3(int[][] scramble, Random rnd, int curr, int total, ObjectSignature signature) |
|
622 |
{ |
|
623 |
// TODO |
|
624 |
} |
|
625 |
|
|
613 | 626 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
614 | 627 |
// PUBLIC API |
615 | 628 |
|
... | ... | |
617 | 630 |
{ |
618 | 631 |
switch(mType) |
619 | 632 |
{ |
620 |
case 0: randomizeNewScramble0(scramble, rnd, curr); break; |
|
621 |
case 1: randomizeNewScramble1(scramble, rnd, curr); break; |
|
622 |
case 2: randomizeNewScramble2(scramble, rnd, curr, total, signature); break; |
|
633 |
case SCRAMBLING_ALGORITHMS: randomizeNewScramble0(scramble, rnd, curr); break; |
|
634 |
case SCRAMBLING_SQUARE1 : randomizeNewScramble1(scramble, rnd, curr); break; |
|
635 |
case SCRAMBLING_BANDAGED : randomizeNewScramble2(scramble, rnd, curr, total, signature); break; |
|
636 |
case SCRAMBLING_TABLEBASES: randomizeNewScramble3(scramble, rnd, curr, total, signature); break; |
|
623 | 637 |
} |
624 | 638 |
} |
625 | 639 |
} |
Also available in: Unified diff
Constants for scrambling types.