Project

General

Profile

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

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

1
///////////////////////////////////////////////////////////////////////////////////////////////////
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
import java.io.InputStream;
23

    
24
import org.distorted.library.type.Static3D;
25
import org.distorted.library.type.Static4D;
26

    
27
import org.distorted.objectlib.helpers.ObjectSignature;
28
import org.distorted.objectlib.main.InitData;
29
import org.distorted.objectlib.main.ObjectType;
30
import org.distorted.objectlib.scrambling.ScrambleState;
31

    
32
///////////////////////////////////////////////////////////////////////////////////////////////////
33

    
34
public class TwistyDino6 extends TwistyDino
35
{
36
  public TwistyDino6(InitData data, int meshState, int iconMode, Static4D quat, Static3D move, float scale, InputStream stream)
37
    {
38
    super(data, meshState, iconMode, quat, move, scale, stream);
39
    }
40

    
41
///////////////////////////////////////////////////////////////////////////////////////////////////
42

    
43
  @Override
44
  public int[][] getSolvedQuats()
45
    {
46
    return new int[][]
47
      {
48
        { 4, 0,2,8,10     },   // 4 'X' cubits in the first group
49
        { 4, 1,3,9,11, 10 },   // 4 'Y' cubits in the second group + Q[10]
50
        { 4, 4,5,6,7 , 11 }    // 4 'Z' cubits in the third group + Q[11]
51
      };
52
    }
53

    
54
///////////////////////////////////////////////////////////////////////////////////////////////////
55

    
56
  public ScrambleState[] getScrambleStates()
57
    {
58
    if( mStates==null )
59
      {
60
      mStates = new ScrambleState[]
61
        {
62
        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} } ),
63
        new ScrambleState( new int[][] { {                          },{0,1,3,0,-1,3              },{0,1,5,0,-1,5,             },{              2,1,8,2,-1,8} } ),
64
        new ScrambleState( new int[][] { {                          },{              2,1,4,2,-1,4},{              2,1,6,2,-1,6},{0,1,7,0,-1,7              } } ),
65
        new ScrambleState( new int[][] { {0,1,1,0,-1,1              },{                          },{              2,1,6,2,-1,6},{0,1,7,0,-1,7              } } ),
66
        new ScrambleState( new int[][] { {              2,1,2,2,-1,2},{                          },{0,1,5,0,-1,5,             },{              2,1,8,2,-1,8} } ),
67
        new ScrambleState( new int[][] { {0,1,1,0,-1,1              },{              2,1,4,2,-1,4},{                          },{0,1,7,0,-1,7              } } ),
68
        new ScrambleState( new int[][] { {              2,1,2,2,-1,2},{0,1,3,0,-1,3              },{                          },{              2,1,8,2,-1,8} } ),
69
        new ScrambleState( new int[][] { {              2,1,2,2,-1,2},{0,1,3,0,-1,3              },{0,1,5,0,-1,5,             },{                          } } ),
70
        new ScrambleState( new int[][] { {0,1,1,0,-1,1              },{              2,1,4,2,-1,4},{              2,1,6,2,-1,6},{                          } } ),
71
        };
72
      }
73

    
74
    return mStates;
75
    }
76

    
77
///////////////////////////////////////////////////////////////////////////////////////////////////
78

    
79
  public String getShortName()
80
    {
81
    return ObjectType.DINO_3.name();
82
    }
83

    
84
///////////////////////////////////////////////////////////////////////////////////////////////////
85

    
86
  public ObjectSignature getSignature()
87
    {
88
    return new ObjectSignature(ObjectType.DINO_3);
89
    }
90

    
91
///////////////////////////////////////////////////////////////////////////////////////////////////
92

    
93
  public String getObjectName()
94
    {
95
    return "Dino Cube (6 color)";
96
    }
97

    
98
///////////////////////////////////////////////////////////////////////////////////////////////////
99

    
100
  public String getInventor()
101
    {
102
    return "Robert Webb";
103
    }
104

    
105
///////////////////////////////////////////////////////////////////////////////////////////////////
106

    
107
  public int getYearOfInvention()
108
    {
109
    return 1985;
110
    }
111

    
112
///////////////////////////////////////////////////////////////////////////////////////////////////
113

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