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/TwistyKilominx.java
739 739

  
740 740
///////////////////////////////////////////////////////////////////////////////////////////////////
741 741

  
742
  public int getObjectName(int[] numLayers)
742
  public String getObjectName()
743 743
    {
744
    int numL = numLayers[0];
745

  
746
    if( numL==3 ) return R.string.minx2;
747
    if( numL==5 ) return R.string.minx4;
748

  
749
    return 0;
744
    switch(getNumLayers()[0])
745
      {
746
      case 3: return "Kilominx";
747
      case 5: return "Master Kilominx";
748
      }
749
    return "Kilominx";
750 750
    }
751 751

  
752 752
///////////////////////////////////////////////////////////////////////////////////////////////////
753 753

  
754
  public int getInventor(int[] numLayers)
754
  public String getInventor()
755 755
    {
756
    int numL = numLayers[0];
757

  
758
    if( numL==3 ) return R.string.minx2_inventor;
759
    if( numL==5 ) return R.string.minx4_inventor;
760

  
761
    return 0;
756
    switch(getNumLayers()[0])
757
      {
758
      case 3: return "Thomas de Bruin";
759
      case 5: return "David Gugl";
760
      }
761
    return "Thomas de Bruin";
762 762
    }
763 763

  
764 764
///////////////////////////////////////////////////////////////////////////////////////////////////
765 765

  
766
  public int getYearOfInvention(int[] numLayers)
766
  public int getYearOfInvention()
767 767
    {
768
    switch(numLayers[0])
768
    switch(getNumLayers()[0])
769 769
      {
770 770
      case 3: return 2008;
771 771
      case 5: return 2010;
......
775 775

  
776 776
///////////////////////////////////////////////////////////////////////////////////////////////////
777 777

  
778
  public int getComplexity(int[] numLayers)
778
  public int getComplexity()
779 779
    {
780
    int numL = numLayers[0];
781

  
782
    if( numL==3 ) return 5;
783
    if( numL==5 ) return 8;
784

  
780
    switch(getNumLayers()[0])
781
      {
782
      case 3: return 5;
783
      case 5: return 8;
784
      }
785 785
    return 8;
786 786
    }
787 787
}

Also available in: Unified diff