Revision b498f3f6
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/object/RubikObjectList.java | ||
---|---|---|
85 | 85 |
|
86 | 86 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
87 | 87 |
|
88 |
public static int pack(int object, int size) |
|
88 |
public static int pack(int object, int sizeIndex)
|
|
89 | 89 |
{ |
90 | 90 |
int ret = 0; |
91 | 91 |
for(int i=0; i<object; i++) ret += objects[i].mObjectSizes.length; |
92 | 92 |
|
93 |
return ret+size; |
|
93 |
return ret+sizeIndex;
|
|
94 | 94 |
} |
95 | 95 |
|
96 | 96 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Introduce RubikPatternsList. Now, if one wants to contribute patterns for a new object, all one has to be is give the list of strings describing the patterns and add them to the List.