1
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
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
|
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.ObjectType;
|
29
|
|
30
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
31
|
|
32
|
public class TwistyBandagedBiCube extends TwistyBandagedAbstract
|
33
|
{
|
34
|
public TwistyBandagedBiCube(int[] numL, int meshState, int iconMode, Static4D quat, Static3D move, float scale, InputStream stream)
|
35
|
{
|
36
|
super(numL, meshState, iconMode, quat, move, scale, stream);
|
37
|
}
|
38
|
|
39
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
40
|
|
41
|
float[][] getPositions()
|
42
|
{
|
43
|
if( POSITIONS==null )
|
44
|
{
|
45
|
POSITIONS = new float[][]
|
46
|
{
|
47
|
{ 1.0f, 1.0f, -1.0f},
|
48
|
{-1.0f, -1.0f, 0.0f, -1.0f, 0.0f, 0.0f, 0.0f, -1.0f, 0.0f, 0.0f, 0.0f, 0.0f},
|
49
|
{-1.0f, 1.0f, -1.0f, 0.0f, 1.0f, -1.0f},
|
50
|
{-1.0f, 0.0f, -1.0f, 0.0f, 0.0f, -1.0f},
|
51
|
{-1.0f, -1.0f, -1.0f, 0.0f, -1.0f, -1.0f},
|
52
|
{-1.0f, 1.0f, 0.0f, -1.0f, 1.0f, 1.0f},
|
53
|
{ 0.0f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f},
|
54
|
{ 1.0f, 1.0f, 0.0f, 1.0f, 1.0f, 1.0f},
|
55
|
{-1.0f, -1.0f, 1.0f, -1.0f, 0.0f, 1.0f},
|
56
|
{ 0.0f, -1.0f, 1.0f, 0.0f, 0.0f, 1.0f},
|
57
|
{ 1.0f, -1.0f, 1.0f, 1.0f, 0.0f, 1.0f},
|
58
|
{ 1.0f, -1.0f, 0.0f, 1.0f, 0.0f, 0.0f},
|
59
|
{ 1.0f, -1.0f, -1.0f, 1.0f, 0.0f, -1.0f}
|
60
|
};
|
61
|
}
|
62
|
return POSITIONS;
|
63
|
}
|
64
|
|
65
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
66
|
// PUBLIC API
|
67
|
|
68
|
public String getShortName()
|
69
|
{
|
70
|
return ObjectType.BAN4_3.name();
|
71
|
}
|
72
|
|
73
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
74
|
|
75
|
public ObjectSignature getSignature()
|
76
|
{
|
77
|
return new ObjectSignature(ObjectType.BAN4_3);
|
78
|
}
|
79
|
|
80
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
81
|
|
82
|
public String getObjectName()
|
83
|
{
|
84
|
return "BiCube";
|
85
|
}
|
86
|
|
87
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
88
|
|
89
|
public String getInventor()
|
90
|
{
|
91
|
return "Uwe Meffert";
|
92
|
}
|
93
|
|
94
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
95
|
|
96
|
public int getYearOfInvention()
|
97
|
{
|
98
|
return 1999;
|
99
|
}
|
100
|
|
101
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
102
|
|
103
|
public int getComplexity()
|
104
|
{
|
105
|
return 3;
|
106
|
}
|
107
|
|
108
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
109
|
|
110
|
public String[][] getTutorials()
|
111
|
{
|
112
|
return new String[][]{
|
113
|
{"gb","AnpdIKICBpM","Trying to Solve a Bandaged Cube","RedKB"},
|
114
|
{"es","cUyo5fycrvI","Tutorial Bandaged Cube en español","Rafa Garcia Benacazon"},
|
115
|
{"ru","-MTzeEJptsg","Как собрать bandaged Cube B","стратегия знаний"},
|
116
|
{"fr","3rsfIJ3roT0","Tutoriel: résolution du Bicube","Skieur Cubb"},
|
117
|
{"de","sqWVRwkXX9w","Bandaged Cube - Tutorial","GerCubing"},
|
118
|
{"pl","XcHzTvVR6Po","Bandaged 3x3 v.B cube","MrUK"},
|
119
|
{"kr","1gsoijF_5q0","BiCube Tutorial (해법)","듀나메스 큐브 해법연구소"},
|
120
|
{"vn","ZCJDaF4jEbc","Tutorial N.3 - BiCube","Duy Thích Rubik"},
|
121
|
};
|
122
|
}
|
123
|
}
|