Project

General

Profile

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

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

1 29b82486 Leszek Koltunski
///////////////////////////////////////////////////////////////////////////////////////////////////
2
// Copyright 2020 Leszek Koltunski                                                               //
3
//                                                                                               //
4
// This file is part of Magic Cube.                                                              //
5
//                                                                                               //
6
// Magic Cube is free software: you can redistribute it and/or modify                            //
7
// it under the terms of the GNU General Public License as published by                          //
8
// the Free Software Foundation, either version 2 of the License, or                             //
9
// (at your option) any later version.                                                           //
10
//                                                                                               //
11
// Magic Cube is distributed in the hope that it will be useful,                                 //
12
// but WITHOUT ANY WARRANTY; without even the implied warranty of                                //
13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                 //
14
// GNU General Public License for more details.                                                  //
15
//                                                                                               //
16
// You should have received a copy of the GNU General Public License                             //
17
// along with Magic Cube.  If not, see <http://www.gnu.org/licenses/>.                           //
18
///////////////////////////////////////////////////////////////////////////////////////////////////
19
20
package org.distorted.objectlib.objects;
21
22 82eb152a Leszek Koltunski
import java.io.InputStream;
23 29b82486 Leszek Koltunski
24 ecf3d6e3 Leszek Koltunski
import org.distorted.library.type.Static3D;
25 29b82486 Leszek Koltunski
import org.distorted.library.type.Static4D;
26
27 1d581993 Leszek Koltunski
import org.distorted.objectlib.helpers.ObjectSignature;
28 8005e762 Leszek Koltunski
import org.distorted.objectlib.main.ObjectType;
29 10b7e306 Leszek Koltunski
import org.distorted.objectlib.scrambling.ScrambleState;
30 29b82486 Leszek Koltunski
31
///////////////////////////////////////////////////////////////////////////////////////////////////
32
33
public class TwistyDino6 extends TwistyDino
34
{
35 3bf19410 Leszek Koltunski
  public TwistyDino6(int[] numL, int meshState, int iconMode, Static4D quat, Static3D move, float scale, InputStream stream)
36 29b82486 Leszek Koltunski
    {
37 3bf19410 Leszek Koltunski
    super(numL, meshState, iconMode, quat, move, scale, stream);
38 29b82486 Leszek Koltunski
    }
39
40 1b7ece90 Leszek Koltunski
///////////////////////////////////////////////////////////////////////////////////////////////////
41
42 ed0988c0 Leszek Koltunski
  @Override
43 19595510 Leszek Koltunski
  public int[][] getSolvedQuats()
44 1b7ece90 Leszek Koltunski
    {
45 ed0988c0 Leszek Koltunski
    return new int[][]
46
      {
47
        { 4, 0,2,8,10     },   // 4 'X' cubits in the first group
48
        { 4, 1,3,9,11, 10 },   // 4 'Y' cubits in the second group + Q[10]
49
        { 4, 4,5,6,7 , 11 }    // 4 'Z' cubits in the third group + Q[11]
50
      };
51 1b7ece90 Leszek Koltunski
    }
52
53 29b82486 Leszek Koltunski
///////////////////////////////////////////////////////////////////////////////////////////////////
54
55 f9a81f52 Leszek Koltunski
  public ScrambleState[] getScrambleStates()
56 29b82486 Leszek Koltunski
    {
57
    if( mStates==null )
58
      {
59
      mStates = new ScrambleState[]
60
        {
61
        new ScrambleState( new int[][] { {0,1,1,0,-1,1, 2,1,2,2,-1,2},{0,1,3,0,-1,3, 2,1,4,2,-1,4},{0,1,5,0,-1,5, 2,1,6,2,-1,6},{0,1,7,0,-1,7, 2,1,8,2,-1,8} } ),
62
        new ScrambleState( new int[][] { {                          },{0,1,3,0,-1,3              },{0,1,5,0,-1,5,             },{              2,1,8,2,-1,8} } ),
63
        new ScrambleState( new int[][] { {                          },{              2,1,4,2,-1,4},{              2,1,6,2,-1,6},{0,1,7,0,-1,7              } } ),
64
        new ScrambleState( new int[][] { {0,1,1,0,-1,1              },{                          },{              2,1,6,2,-1,6},{0,1,7,0,-1,7              } } ),
65
        new ScrambleState( new int[][] { {              2,1,2,2,-1,2},{                          },{0,1,5,0,-1,5,             },{              2,1,8,2,-1,8} } ),
66
        new ScrambleState( new int[][] { {0,1,1,0,-1,1              },{              2,1,4,2,-1,4},{                          },{0,1,7,0,-1,7              } } ),
67
        new ScrambleState( new int[][] { {              2,1,2,2,-1,2},{0,1,3,0,-1,3              },{                          },{              2,1,8,2,-1,8} } ),
68
        new ScrambleState( new int[][] { {              2,1,2,2,-1,2},{0,1,3,0,-1,3              },{0,1,5,0,-1,5,             },{                          } } ),
69
        new ScrambleState( new int[][] { {0,1,1,0,-1,1              },{              2,1,4,2,-1,4},{              2,1,6,2,-1,6},{                          } } ),
70
        };
71
      }
72
73
    return mStates;
74
    }
75
76 61aa85e4 Leszek Koltunski
///////////////////////////////////////////////////////////////////////////////////////////////////
77
78 5f54927b Leszek Koltunski
  public String getShortName()
79 61aa85e4 Leszek Koltunski
    {
80 5f54927b Leszek Koltunski
    return ObjectType.DINO_3.name();
81
    }
82
83
///////////////////////////////////////////////////////////////////////////////////////////////////
84
85 1d581993 Leszek Koltunski
  public ObjectSignature getSignature()
86 5f54927b Leszek Koltunski
    {
87 1d581993 Leszek Koltunski
    return new ObjectSignature(ObjectType.DINO_3);
88 61aa85e4 Leszek Koltunski
    }
89
90 29b82486 Leszek Koltunski
///////////////////////////////////////////////////////////////////////////////////////////////////
91
92 e26eb4e7 Leszek Koltunski
  public String getObjectName()
93 29b82486 Leszek Koltunski
    {
94 e26eb4e7 Leszek Koltunski
    return "Dino Cube (6 color)";
95 29b82486 Leszek Koltunski
    }
96
97
///////////////////////////////////////////////////////////////////////////////////////////////////
98
99 e26eb4e7 Leszek Koltunski
  public String getInventor()
100 29b82486 Leszek Koltunski
    {
101 e26eb4e7 Leszek Koltunski
    return "Robert Webb";
102 29b82486 Leszek Koltunski
    }
103 59c20632 Leszek Koltunski
104
///////////////////////////////////////////////////////////////////////////////////////////////////
105
106 e26eb4e7 Leszek Koltunski
  public int getYearOfInvention()
107 59c20632 Leszek Koltunski
    {
108
    return 1985;
109
    }
110 052e0362 Leszek Koltunski
111
///////////////////////////////////////////////////////////////////////////////////////////////////
112
113
  public String[][] getTutorials()
114
    {
115
    return new String[][]{
116
                          {"gb","puTJZqFBQwo","Dino Skewb Cube Tutorial","Bearded Cubing"},
117
                          {"es","6o1Yo5iCxvI","Resolver Cubo Dino","Cuby"},
118
                          {"ru","tWDrCtIv1_U","Как собрать Дино Куб","Алексей Ярыгин"},
119
                          {"fr","hNkpte7Mesc","Comment résoudre le Dino Cube","Valentino Cube"},
120
                          {"de","RqJLI6_C9JA","Dino Cube Tutorial","GerCubing"},
121
                          {"pl","o05DYu8UMio","Dino Cube TUTORIAL PL","MrUk"},
122
                          {"br","jAwjAF8dpOM","Como resolver o Dino Cube","Rafael Cinoto"},
123
                          {"kr","imbrqGPSXWQ","(엑스큐브)완전 정복하기!","초등취미생활"},
124 a399e91b Leszek Koltunski
                          {"vn","GrcZ_Ct2iYI","Tutorial N.7 - Dino","Duy Thích Rubik"},
125 052e0362 Leszek Koltunski
                         };
126
    }
127 29b82486 Leszek Koltunski
}