Project

General

Profile

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

distorted-objectlib / src / main / java / org / distorted / objectlib / objects / TwistyBandagedFused.java @ 2f7b42cf

1 29b82486 Leszek Koltunski
///////////////////////////////////////////////////////////////////////////////////////////////////
2
// Copyright 2021 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 29b82486 Leszek Koltunski
30
///////////////////////////////////////////////////////////////////////////////////////////////////
31
32
public class TwistyBandagedFused extends TwistyBandagedAbstract
33
{
34 3bf19410 Leszek Koltunski
  public TwistyBandagedFused(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
///////////////////////////////////////////////////////////////////////////////////////////////////
40
41
  float[][] getPositions()
42
    {
43
    if( POSITIONS==null )
44
      {
45
      POSITIONS = new float[][]
46
        {
47
          {-1.0f, -1.0f, +0.0f,
48
           -1.0f, -1.0f, +1.0f,
49
           -1.0f,  0.0f, +0.0f,
50
           -1.0f,  0.0f, +1.0f,
51
            0.0f, -1.0f, +0.0f,
52
            0.0f, -1.0f, +1.0f,
53
            0.0f,  0.0f, +0.0f,
54
            0.0f,  0.0f, +1.0f},
55
          {-1.0f, +1.0f, +1.0f},
56
          {-1.0f, +1.0f, +0.0f},
57
          {-1.0f, +1.0f, -1.0f},
58
          { 0.0f, +1.0f, +1.0f},
59
          { 0.0f, +1.0f, +0.0f},
60
          { 0.0f, +1.0f, -1.0f},
61
          { 1.0f, +1.0f, +1.0f},
62
          { 1.0f, +1.0f, +0.0f},
63
          { 1.0f, +1.0f, -1.0f},
64
          { 1.0f,  0.0f, +1.0f},
65
          { 1.0f,  0.0f, +0.0f},
66
          { 1.0f,  0.0f, -1.0f},
67
          { 1.0f, -1.0f, +1.0f},
68
          { 1.0f, -1.0f, +0.0f},
69
          { 1.0f, -1.0f, -1.0f},
70
          {-1.0f, -1.0f, -1.0f},
71
          {-1.0f,  0.0f, -1.0f},
72
          { 0.0f, -1.0f, -1.0f},
73
          { 0.0f,  0.0f, -1.0f}
74
        };
75
      }
76
    return POSITIONS;
77
    }
78
79
///////////////////////////////////////////////////////////////////////////////////////////////////
80
// PUBLIC APi
81
82 5f54927b Leszek Koltunski
  public String getShortName()
83 61aa85e4 Leszek Koltunski
    {
84 5f54927b Leszek Koltunski
    return ObjectType.BAN1_3.name();
85
    }
86
87 1d581993 Leszek Koltunski
///////////////////////////////////////////////////////////////////////////////////////////////////
88
89
  public ObjectSignature getSignature()
90
    {
91
    return new ObjectSignature(ObjectType.BAN1_3);
92
    }
93
94 61aa85e4 Leszek Koltunski
///////////////////////////////////////////////////////////////////////////////////////////////////
95
96 e26eb4e7 Leszek Koltunski
  public String getObjectName()
97 29b82486 Leszek Koltunski
    {
98 e26eb4e7 Leszek Koltunski
    return "Fused Cube";
99 29b82486 Leszek Koltunski
    }
100
101
///////////////////////////////////////////////////////////////////////////////////////////////////
102
103 e26eb4e7 Leszek Koltunski
  public String getInventor()
104 29b82486 Leszek Koltunski
    {
105 b4223a92 Leszek Koltunski
    return "Ting Huang";
106 29b82486 Leszek Koltunski
    }
107
108 59c20632 Leszek Koltunski
///////////////////////////////////////////////////////////////////////////////////////////////////
109
110 e26eb4e7 Leszek Koltunski
  public int getYearOfInvention()
111 59c20632 Leszek Koltunski
    {
112 b4223a92 Leszek Koltunski
    return 2011;
113 59c20632 Leszek Koltunski
    }
114
115 29b82486 Leszek Koltunski
///////////////////////////////////////////////////////////////////////////////////////////////////
116
117 e26eb4e7 Leszek Koltunski
  public int getComplexity()
118 29b82486 Leszek Koltunski
    {
119 b4223a92 Leszek Koltunski
    return 1;
120 29b82486 Leszek Koltunski
    }
121 052e0362 Leszek Koltunski
122
///////////////////////////////////////////////////////////////////////////////////////////////////
123
124
  public String[][] getTutorials()
125
    {
126
    return new String[][]{
127
                          {"gb","F_iJk_IvpVo","Bandaged Cube","CanChrisSolve"},
128
                          {"es","_lTgw5aEFOg","Tutorial 3x3 Fuse Cube","QBAndo"},
129
                          {"ru","raYDwFEXIq4","Как собрать Fused Cube","Алексей Ярыгин"},
130
                          {"fr","9Cfi4rhKzIw","Tutoriel: résolution du Fused Cube","Skieur Cubb"},
131
                          {"pl","0PcUoGxQa6s","Bandaged 3x3 v.A cube","MrUK"},
132
                          {"kr","1RePOLrzJNE","밴디지 타입 A 해법","듀나메스 큐브 해법연구소"},
133 a399e91b Leszek Koltunski
                          {"vn","vg4J0U0n1oA","Tutorial N.1 - Bandaged VA","Duy Thích Rubik"},
134 052e0362 Leszek Koltunski
                         };
135
    }
136 29b82486 Leszek Koltunski
}