Project

General

Profile

« Previous | Next » 

Revision e26eb4e7

Added by Leszek Koltunski over 2 years ago

Do not pull the inventors and the names of objects from Resources.

View differences:

src/main/java/org/distorted/objectlib/objects/TwistySkewb.java
638 638

  
639 639
///////////////////////////////////////////////////////////////////////////////////////////////////
640 640

  
641
  public int getObjectName(int[] numLayers)
641
  public String getObjectName()
642 642
    {
643
    switch(numLayers[0])
643
    switch(getNumLayers()[0])
644 644
      {
645
      case 2: return R.string.skew2;
646
      case 3: return R.string.skew3;
645
      case 2: return "Skewb";
646
      case 3: return "Master Skewb";
647 647
      }
648
    return R.string.skew2;
648
    return "Skewb";
649 649
    }
650 650

  
651 651
///////////////////////////////////////////////////////////////////////////////////////////////////
652 652

  
653
  public int getInventor(int[] numLayers)
653
  public String getInventor()
654 654
    {
655
    switch(numLayers[0])
655
    switch(getNumLayers()[0])
656 656
      {
657
      case 2: return R.string.skew2_inventor;
658
      case 3: return R.string.skew3_inventor;
657
      case 2: return "Tony Durham";
658
      case 3: return "Katsuhiko Okamoto";
659 659
      }
660
    return R.string.skew2_inventor;
660
    return "Tony Durham";
661 661
    }
662 662

  
663 663
///////////////////////////////////////////////////////////////////////////////////////////////////
664 664

  
665
  public int getYearOfInvention(int[] numLayers)
665
  public int getYearOfInvention()
666 666
    {
667
    switch(numLayers[0])
667
    switch(getNumLayers()[0])
668 668
      {
669 669
      case 2: return 1982;
670 670
      case 3: return 2003;
......
674 674

  
675 675
///////////////////////////////////////////////////////////////////////////////////////////////////
676 676

  
677
  public int getComplexity(int[] numLayers)
677
  public int getComplexity()
678 678
    {
679
    switch(numLayers[0])
679
    switch(getNumLayers()[0])
680 680
      {
681 681
      case 2: return 4;
682 682
      case 3: return 8;

Also available in: Unified diff