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/TwistyMirror.java
670 670

  
671 671
///////////////////////////////////////////////////////////////////////////////////////////////////
672 672

  
673
  public int getObjectName(int[] numLayers)
673
  public String getObjectName()
674 674
    {
675
    switch(numLayers[0])
675
    switch(getNumLayers()[0])
676 676
      {
677
      case 2: return R.string.mirr2;
678
      case 3: return R.string.mirr3;
677
      case 2: return "Pocket Mirror";
678
      case 3: return "Mirror Cube";
679 679
      }
680
    return R.string.mirr3;
680
    return "Pocket Mirror";
681 681
    }
682 682

  
683 683
///////////////////////////////////////////////////////////////////////////////////////////////////
684 684

  
685
  public int getInventor(int[] numLayers)
685
  public String getInventor()
686 686
    {
687
    switch(numLayers[0])
687
    switch(getNumLayers()[0])
688 688
      {
689
      case 2: return R.string.mirr2_inventor;
690
      case 3: return R.string.mirr3_inventor;
689
      case 2: return "Thomas de Bruin";
690
      case 3: return "Hidetoshi Takeji";
691 691
      }
692
    return R.string.mirr3_inventor;
692
    return "Hidetoshi Takeji";
693 693
    }
694 694

  
695 695
///////////////////////////////////////////////////////////////////////////////////////////////////
696 696

  
697
  public int getYearOfInvention(int[] numLayers)
697
  public int getYearOfInvention()
698 698
    {
699
    switch(numLayers[0])
699
    switch(getNumLayers()[0])
700 700
      {
701 701
      case 2: return 2007;
702 702
      case 3: return 2006;
......
706 706

  
707 707
///////////////////////////////////////////////////////////////////////////////////////////////////
708 708

  
709
  public int getComplexity(int[] numLayers)
709
  public int getComplexity()
710 710
    {
711
    switch(numLayers[0])
711
    switch(getNumLayers()[0])
712 712
      {
713 713
      case 2: return 5;
714 714
      case 3: return 7;

Also available in: Unified diff