Revision 743cdab7
Added by Leszek Koltunski 5 months ago
src/main/java/org/distorted/objectlib/objects/TwistyTrajber.java | ||
---|---|---|
651 | 651 |
return null; |
652 | 652 |
} |
653 | 653 |
|
654 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
655 |
|
|
656 |
public String getObjectName() |
|
657 |
{ |
|
658 |
int[] numLayers = getNumLayers(); |
|
659 |
|
|
660 |
switch(numLayers[0]) |
|
661 |
{ |
|
662 |
case 3: return "Trajber's Octahedron"; |
|
663 |
case 4: return "Trajber 4x4"; |
|
664 |
} |
|
665 |
|
|
666 |
return null; |
|
667 |
} |
|
668 |
|
|
669 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
670 |
|
|
671 |
public String getInventor() |
|
672 |
{ |
|
673 |
int[] numLayers = getNumLayers(); |
|
674 |
|
|
675 |
switch(numLayers[0]) |
|
676 |
{ |
|
677 |
case 3: return "Josef Trajber"; |
|
678 |
case 4: return "Jürgen Brandt"; |
|
679 |
} |
|
680 |
|
|
681 |
return null; |
|
682 |
} |
|
683 |
|
|
684 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
685 |
|
|
686 |
public int getYearOfInvention() |
|
687 |
{ |
|
688 |
int[] numLayers = getNumLayers(); |
|
689 |
return numLayers[0]==3 ? 1982 : 2001; |
|
690 |
} |
|
691 |
|
|
692 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
693 |
|
|
694 |
public float getComplexity() |
|
695 |
{ |
|
696 |
int[] numLayers = getNumLayers(); |
|
697 |
return numLayers[0]==3 ? 2.53f : 3.51f; |
|
698 |
} |
|
699 |
|
|
700 | 654 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
701 | 655 |
|
702 | 656 |
public String[][] getTutorials() |
Also available in: Unified diff
Next step toward separating TwistyObject metadata.