Project

General

Profile

« Previous | Next » 

Revision 1d581993

Added by Leszek Koltunski about 2 years ago

Introduce ObjectSignature that can incorporate 192-bit signatures (for 5x5x5 bandaged cubes).
ObjectScrambler does not fully work yet.

View differences:

src/main/java/org/distorted/objectlib/objects/TwistyKilominx.java
29 29
import org.distorted.library.main.QuatHelper;
30 30

  
31 31
import org.distorted.objectlib.helpers.ObjectFaceShape;
32
import org.distorted.objectlib.helpers.ObjectSignature;
32 33
import org.distorted.objectlib.main.ObjectType;
33 34
import org.distorted.objectlib.helpers.ObjectShape;
34 35

  
......
571 572

  
572 573
///////////////////////////////////////////////////////////////////////////////////////////////////
573 574

  
574
  public long getSignature()
575
  public ObjectSignature getSignature()
575 576
    {
576 577
    switch(getNumLayers()[0])
577 578
      {
578
      case 3: return ObjectType.KILO_3.ordinal();
579
      case 5: return ObjectType.KILO_5.ordinal();
579
      case 3: return new ObjectSignature(ObjectType.KILO_3);
580
      case 5: return new ObjectSignature(ObjectType.KILO_5);
580 581
      }
581 582

  
582
    return ObjectType.KILO_3.ordinal();
583
    return null;
583 584
    }
584 585

  
585 586
///////////////////////////////////////////////////////////////////////////////////////////////////
......
591 592
      case 3: return "Kilominx";
592 593
      case 5: return "Master Kilominx";
593 594
      }
594
    return "Kilominx";
595
    return null;
595 596
    }
596 597

  
597 598
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff