Revision b78ebd76
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/objectlib/helpers/BlockController.java | ||
---|---|---|
33 | 33 |
|
34 | 34 |
public class BlockController |
35 | 35 |
{ |
36 |
public static final int RUBIK_PLACE_0 =0; |
|
37 |
public static final int RUBIK_PLACE_1 =1; |
|
38 |
public static final int RUBIK_PLACE_2 =2; |
|
39 |
public static final int RUBIK_PLACE_3 =3; |
|
40 |
public static final int RUBIK_PLACE_4 =4; |
|
41 |
public static final int TUTORIAL_PLACE_0 =10; |
|
42 |
public static final int TUTORIAL_PLACE_1 =11; |
|
43 |
public static final int TUTORIAL_PLACE_2 =12; |
|
44 |
public static final int TUTORIAL_PLACE_3 =13; |
|
45 |
public static final int TUTORIAL_PLACE_4 =14; |
|
36 |
public static final int PLACE_0 =0; |
|
37 |
public static final int PLACE_1 =1; |
|
38 |
public static final int PLACE_2 =2; |
|
39 |
public static final int PLACE_3 =3; |
|
40 |
public static final int PLACE_4 =4; |
|
46 | 41 |
public static final int CONTROL_PLACE_0 =20; |
47 | 42 |
public static final int CONTROL_PLACE_1 =21; |
48 | 43 |
public static final int MOVES_PLACE_0 =30; |
... | ... | |
107 | 102 |
{ |
108 | 103 |
switch(last) |
109 | 104 |
{ |
110 |
case RUBIK_PLACE_3 : |
|
111 |
case TUTORIAL_PLACE_3: return THRESHHOLD_1; |
|
112 |
case RUBIK_PLACE_4 : |
|
113 |
case TUTORIAL_PLACE_4: return THRESHHOLD_2; |
|
105 |
case PLACE_3 :return THRESHHOLD_1; |
|
106 |
case PLACE_4 : return THRESHHOLD_2; |
|
114 | 107 |
case CONTROL_PLACE_0 : |
115 | 108 |
case CONTROL_PLACE_1 : return THRESHHOLD_3; |
116 | 109 |
default : return THRESHHOLD_0; |
Also available in: Unified diff
Simplifications