Revision 2dffaf22
Added by Leszek Koltunski over 1 year ago
src/main/java/org/distorted/objectlib/helpers/ObjectSignature.java | ||
---|---|---|
60 | 60 |
} |
61 | 61 |
} |
62 | 62 |
|
63 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
64 |
// built-in objects |
|
65 |
|
|
66 |
public ObjectSignature(ObjectType type) |
|
67 |
{ |
|
68 |
mSignature = new long[SIZE]; |
|
69 |
mSignature[SIZE-1] = type.ordinal(); |
|
70 |
} |
|
71 |
|
|
72 | 63 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
73 | 64 |
|
74 | 65 |
public ObjectSignature(ObjectSignature sig) |
... | ... | |
89 | 80 |
} |
90 | 81 |
|
91 | 82 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
92 |
// built-in bandaged 3x3s; objects created from JSON (version1)
|
|
83 |
// built-in objects; objects created from JSON (version1)
|
|
93 | 84 |
|
94 | 85 |
public ObjectSignature(long signature) |
95 | 86 |
{ |
Also available in: Unified diff
- add the Pyraminx Duo solver to the list
- make the signature of an object independent of its location in the ObjectType enum