Project

General

Profile

« Previous | Next » 

Revision 5f54927b

Added by Leszek Koltunski over 2 years ago

Preparation for local creation of puzzles: remove the 'ObjectType' enum from TwistyObject class.

View differences:

src/main/java/org/distorted/objectlib/objects/TwistyKilominx.java
555 555

  
556 556
///////////////////////////////////////////////////////////////////////////////////////////////////
557 557

  
558
  public ObjectType intGetObjectType(int[] numLayers)
558
  public String getShortName()
559 559
    {
560
    switch(numLayers[0])
560
    switch(getNumLayers()[0])
561
      {
562
      case 3: return ObjectType.KILO_3.name();
563
      case 5: return ObjectType.KILO_5.name();
564
      }
565

  
566
    return ObjectType.KILO_3.name();
567
    }
568

  
569
///////////////////////////////////////////////////////////////////////////////////////////////////
570

  
571
  public long getSignature()
572
    {
573
    switch(getNumLayers()[0])
561 574
      {
562
      case 3: return ObjectType.KILO_3;
563
      case 5: return ObjectType.KILO_5;
575
      case 3: return ObjectType.KILO_3.ordinal();
576
      case 5: return ObjectType.KILO_5.ordinal();
564 577
      }
565 578

  
566
    return ObjectType.KILO_3;
579
    return ObjectType.KILO_3.ordinal();
567 580
    }
568 581

  
569 582
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff