Project

General

Profile

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

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

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 8005e762 Leszek Koltunski
import org.distorted.objectlib.main.ObjectType;
28 10b7e306 Leszek Koltunski
import org.distorted.objectlib.scrambling.ScrambleState;
29 29b82486 Leszek Koltunski
30
///////////////////////////////////////////////////////////////////////////////////////////////////
31
32
public class TwistyDino6 extends TwistyDino
33
{
34 3bf19410 Leszek Koltunski
  public TwistyDino6(int[] numL, int meshState, int iconMode, Static4D quat, Static3D move, float scale, InputStream stream)
35 29b82486 Leszek Koltunski
    {
36 3bf19410 Leszek Koltunski
    super(numL, meshState, iconMode, quat, move, scale, stream);
37 29b82486 Leszek Koltunski
    }
38
39 1b7ece90 Leszek Koltunski
///////////////////////////////////////////////////////////////////////////////////////////////////
40
41 ed0988c0 Leszek Koltunski
  @Override
42 19595510 Leszek Koltunski
  public int[][] getSolvedQuats()
43 1b7ece90 Leszek Koltunski
    {
44 ed0988c0 Leszek Koltunski
    return new int[][]
45
      {
46
        { 4, 0,2,8,10     },   // 4 'X' cubits in the first group
47
        { 4, 1,3,9,11, 10 },   // 4 'Y' cubits in the second group + Q[10]
48
        { 4, 4,5,6,7 , 11 }    // 4 'Z' cubits in the third group + Q[11]
49
      };
50 1b7ece90 Leszek Koltunski
    }
51
52 29b82486 Leszek Koltunski
///////////////////////////////////////////////////////////////////////////////////////////////////
53
54 f9a81f52 Leszek Koltunski
  public ScrambleState[] getScrambleStates()
55 29b82486 Leszek Koltunski
    {
56
    if( mStates==null )
57
      {
58
      mStates = new ScrambleState[]
59
        {
60
        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} } ),
61
        new ScrambleState( new int[][] { {                          },{0,1,3,0,-1,3              },{0,1,5,0,-1,5,             },{              2,1,8,2,-1,8} } ),
62
        new ScrambleState( new int[][] { {                          },{              2,1,4,2,-1,4},{              2,1,6,2,-1,6},{0,1,7,0,-1,7              } } ),
63
        new ScrambleState( new int[][] { {0,1,1,0,-1,1              },{                          },{              2,1,6,2,-1,6},{0,1,7,0,-1,7              } } ),
64
        new ScrambleState( new int[][] { {              2,1,2,2,-1,2},{                          },{0,1,5,0,-1,5,             },{              2,1,8,2,-1,8} } ),
65
        new ScrambleState( new int[][] { {0,1,1,0,-1,1              },{              2,1,4,2,-1,4},{                          },{0,1,7,0,-1,7              } } ),
66
        new ScrambleState( new int[][] { {              2,1,2,2,-1,2},{0,1,3,0,-1,3              },{                          },{              2,1,8,2,-1,8} } ),
67
        new ScrambleState( new int[][] { {              2,1,2,2,-1,2},{0,1,3,0,-1,3              },{0,1,5,0,-1,5,             },{                          } } ),
68
        new ScrambleState( new int[][] { {0,1,1,0,-1,1              },{              2,1,4,2,-1,4},{              2,1,6,2,-1,6},{                          } } ),
69
        };
70
      }
71
72
    return mStates;
73
    }
74
75 61aa85e4 Leszek Koltunski
///////////////////////////////////////////////////////////////////////////////////////////////////
76
77 5f54927b Leszek Koltunski
  public String getShortName()
78 61aa85e4 Leszek Koltunski
    {
79 5f54927b Leszek Koltunski
    return ObjectType.DINO_3.name();
80
    }
81
82
///////////////////////////////////////////////////////////////////////////////////////////////////
83
84
  public long getSignature()
85
    {
86
    return ObjectType.DINO_3.ordinal();
87 61aa85e4 Leszek Koltunski
    }
88
89 29b82486 Leszek Koltunski
///////////////////////////////////////////////////////////////////////////////////////////////////
90
91 e26eb4e7 Leszek Koltunski
  public String getObjectName()
92 29b82486 Leszek Koltunski
    {
93 e26eb4e7 Leszek Koltunski
    return "Dino Cube (6 color)";
94 29b82486 Leszek Koltunski
    }
95
96
///////////////////////////////////////////////////////////////////////////////////////////////////
97
98 e26eb4e7 Leszek Koltunski
  public String getInventor()
99 29b82486 Leszek Koltunski
    {
100 e26eb4e7 Leszek Koltunski
    return "Robert Webb";
101 29b82486 Leszek Koltunski
    }
102 59c20632 Leszek Koltunski
103
///////////////////////////////////////////////////////////////////////////////////////////////////
104
105 e26eb4e7 Leszek Koltunski
  public int getYearOfInvention()
106 59c20632 Leszek Koltunski
    {
107
    return 1985;
108
    }
109 052e0362 Leszek Koltunski
110
///////////////////////////////////////////////////////////////////////////////////////////////////
111
112
  public String[][] getTutorials()
113
    {
114
    return new String[][]{
115
                          {"gb","puTJZqFBQwo","Dino Skewb Cube Tutorial","Bearded Cubing"},
116
                          {"es","6o1Yo5iCxvI","Resolver Cubo Dino","Cuby"},
117
                          {"ru","tWDrCtIv1_U","Как собрать Дино Куб","Алексей Ярыгин"},
118
                          {"fr","hNkpte7Mesc","Comment résoudre le Dino Cube","Valentino Cube"},
119
                          {"de","RqJLI6_C9JA","Dino Cube Tutorial","GerCubing"},
120
                          {"pl","o05DYu8UMio","Dino Cube TUTORIAL PL","MrUk"},
121
                          {"br","jAwjAF8dpOM","Como resolver o Dino Cube","Rafael Cinoto"},
122
                          {"kr","imbrqGPSXWQ","(엑스큐브)완전 정복하기!","초등취미생활"},
123 a399e91b Leszek Koltunski
                          {"vn","GrcZ_Ct2iYI","Tutorial N.7 - Dino","Duy Thích Rubik"},
124 052e0362 Leszek Koltunski
                         };
125
    }
126 29b82486 Leszek Koltunski
}