Project

General

Profile

Download (4.93 KB) Statistics
| Branch: | Revision:

distorted-objectlib / src / main / java / org / distorted / objectlib / objects / TwistyDino6.java @ e8bf9b51

1
///////////////////////////////////////////////////////////////////////////////////////////////////
2
// Copyright 2020 Leszek Koltunski                                                               //
3
//                                                                                               //
4
// This file is part of Magic Cube.                                                              //
5
//                                                                                               //
6
// Magic Cube is proprietary software licensed under an EULA which you should have received      //
7
// along with the code. If not, check https://distorted.org/magic/License-Magic-Cube.html        //
8
///////////////////////////////////////////////////////////////////////////////////////////////////
9

    
10
package org.distorted.objectlib.objects;
11

    
12
import java.io.InputStream;
13

    
14
import org.distorted.library.type.Static3D;
15
import org.distorted.library.type.Static4D;
16

    
17
import org.distorted.objectlib.helpers.ObjectSignature;
18
import org.distorted.objectlib.main.InitData;
19
import org.distorted.objectlib.main.ObjectType;
20
import org.distorted.objectlib.scrambling.ScrambleState;
21

    
22
///////////////////////////////////////////////////////////////////////////////////////////////////
23

    
24
public class TwistyDino6 extends TwistyDino
25
{
26
  public TwistyDino6(InitData data, int meshState, int iconMode, Static4D quat, Static3D move, float scale, InputStream stream)
27
    {
28
    super(data, meshState, iconMode, quat, move, scale, stream);
29
    }
30

    
31
///////////////////////////////////////////////////////////////////////////////////////////////////
32

    
33
  @Override
34
  public int[][] getSolvedQuats()
35
    {
36
    return new int[][]
37
      {
38
        { 4, 0,2,8,10     },   // 4 'X' cubits in the first group
39
        { 4, 1,3,9,11, 10 },   // 4 'Y' cubits in the second group + Q[10]
40
        { 4, 4,5,6,7 , 11 }    // 4 'Z' cubits in the third group + Q[11]
41
      };
42
    }
43

    
44
///////////////////////////////////////////////////////////////////////////////////////////////////
45

    
46
  public int[][] getScrambleEdges()
47
    {
48
    if( mEdges==null )
49
      {
50
      mEdges = new int[][]
51
        {
52
          { 0,8,1,8, 4,1,5,1, 6,7,7,7, 10,2,11,2, 12,6,13,6, 16,3,17,3, 18,5,19,5, 22,4,23,4 },  // 0
53
          {                            10,2,11,2,            16,3,17,3, 18,5,19,5            },  // 1
54
          {          4,1,5,1,                     12,6,13,6,                       22,4,23,4 },  // 2
55
          {          4,1,5,1, 6,7,7,7,                                             22,4,23,4 },  // 3
56
          { 0,8,1,8,                   10,2,11,2,            16,3,17,3                       },  // 4
57
          {          4,1,5,1, 6,7,7,7,            12,6,13,6                                  },  // 5
58
          { 0,8,1,8,                   10,2,11,2,                       18,5,19,5            },  // 6
59
          { 0,8,1,8,                                         16,3,17,3, 18,5,19,5            },  // 7
60
          {                   6,7,7,7,            12,6,13,6,                       22,4,23,4 },  // 8
61
        };
62
      }
63

    
64
    return mEdges;
65
    }
66

    
67
///////////////////////////////////////////////////////////////////////////////////////////////////
68

    
69
  public String getShortName()
70
    {
71
    return ObjectType.DINO_3.name();
72
    }
73

    
74
///////////////////////////////////////////////////////////////////////////////////////////////////
75

    
76
  public ObjectSignature getSignature()
77
    {
78
    return new ObjectSignature(ObjectType.DINO_3);
79
    }
80

    
81
///////////////////////////////////////////////////////////////////////////////////////////////////
82

    
83
  public String getObjectName()
84
    {
85
    return "Dino Cube (6 color)";
86
    }
87

    
88
///////////////////////////////////////////////////////////////////////////////////////////////////
89

    
90
  public String getInventor()
91
    {
92
    return "Robert Webb";
93
    }
94

    
95
///////////////////////////////////////////////////////////////////////////////////////////////////
96

    
97
  public int getYearOfInvention()
98
    {
99
    return 1985;
100
    }
101

    
102
///////////////////////////////////////////////////////////////////////////////////////////////////
103

    
104
  public String[][] getTutorials()
105
    {
106
    return new String[][]{
107
                          {"gb","puTJZqFBQwo","Dino Skewb Cube Tutorial","Bearded Cubing"},
108
                          {"es","6o1Yo5iCxvI","Resolver Cubo Dino","Cuby"},
109
                          {"ru","tWDrCtIv1_U","Как собрать Дино Куб","Алексей Ярыгин"},
110
                          {"fr","hNkpte7Mesc","Comment résoudre le Dino Cube","Valentino Cube"},
111
                          {"de","RqJLI6_C9JA","Dino Cube Tutorial","GerCubing"},
112
                          {"pl","o05DYu8UMio","Dino Cube TUTORIAL PL","MrUk"},
113
                          {"br","jAwjAF8dpOM","Como resolver o Dino Cube","Rafael Cinoto"},
114
                          {"kr","imbrqGPSXWQ","(엑스큐브)완전 정복하기!","초등취미생활"},
115
                          {"vn","GrcZ_Ct2iYI","Tutorial N.7 - Dino","Duy Thích Rubik"},
116
                         };
117
    }
118
}
(13-13/41)